Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16429][SQL] Include StringType columns in describe() - #14095
[SPARK-16429][SQL] Include StringType columns in describe()#14095dongjoon-hyun wants to merge 4 commits into
StringType columns in describe()#14095Conversation
dongjoon-hyun
commented
Jul 7, 2016
Thank you for fast review, @rxin . I updated it. |
SparkQA
commented
Jul 7, 2016
Test build #61929 has finished for PR 14095 at commit
|
dongjoon-hyun
commented
Jul 7, 2016
Oh, it's a documented behavior. |
SparkQA
commented
Jul 7, 2016
Test build #61930 has finished for PR 14095 at commit
|
StringType columns in Scala/Python describe()StringType columns in describe()rxin
commented
Jul 8, 2016
Can you fix Python? |
dongjoon-hyun
commented
Jul 8, 2016
Oh, sure! |
rxin
commented
Jul 8, 2016
And also update the documentation. |
dongjoon-hyun
commented
Jul 8, 2016
Of course! |
dongjoon-hyun
commented
Jul 8, 2016
I fixed Python/R and the docs accordingly, and tested locally. |
| .filter(f => f.dataType.isInstanceOf[NumericType] || f.dataType.isInstanceOf[StringType]) | ||
| .map { n => | ||
| queryExecution.analyzed.resolveQuoted(n.name, sparkSession.sessionState.analyzer.resolver) | ||
| .get |
There was a problem hiding this comment.
is it possible that this would fail?
There was a problem hiding this comment.
Ur, this is an direct extension of line 225 of existing numericColumns.
https://github.com/apache/spark/pull/14095/files#diff-7a46f10c3cedbf013cf255564d9483cdR225
There was a problem hiding this comment.
You mean the failure of resolveQuoted?
There was a problem hiding this comment.
It will not fail because the names come from schema.fields.
SparkQA
commented
Jul 8, 2016
Test build #61962 has finished for PR 14095 at commit
|
dongjoon-hyun
commented
Jul 8, 2016
Hi, @rxin . |
SparkQA
commented
Jul 8, 2016
Test build #61965 has finished for PR 14095 at commit
|
rxin
commented
Jul 8, 2016
Thanks - merging in master. |
dongjoon-hyun
commented
Jul 8, 2016
Thank you for merging, @rxin . |
What changes were proposed in this pull request?
Currently, Spark
describesupportsStringType. However,describe()returns a dataset for only all numeric columns. This PR aims to includeStringTypecolumns indescribe(),describewithout argument.Background
Before
After
How was this patch tested?
Pass the Jenkins with a update testcase.