-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-33892][SQL] Display char/varchar in DESC and SHOW CREATE TABLE #30908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
cc @cloud-fan @maropu @HyukjinKwon thanks a lot |
| isExtended: Boolean) extends V2CommandExec { | ||
|
|
||
|
|
||
| override def producedAttributes: AttributeSet = outputSet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we do this in V2CommandExec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I agree. I was wondering if it is relevant to this PR.
| } | ||
| } | ||
|
|
||
| test("DESCRIBE COLUMN w/ char/varchar") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we add a TODO? eventually, v2 catalog can run these 2 commands as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any existing JIRA to track this, or I shall create one, then mark todo w/ it togeter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Test build #133306 has finished for PR 30908 at commit
|
|
Test build #133317 has finished for PR 30908 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
| import org.apache.spark.sql.catalyst.InternalRow | ||
| import org.apache.spark.sql.catalyst.encoders.RowEncoder | ||
| import org.apache.spark.sql.catalyst.expressions.{Attribute, GenericRowWithSchema} | ||
| import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeSet, GenericRowWithSchema} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this addition in this PR? Otherwise, shall we avoid touching irrelevant files by reverting this change?
| } | ||
| } | ||
|
|
||
| test("DESCRIBE TABLE w/ char/varchar") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add SPARK-33892: prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| } | ||
| } | ||
|
|
||
| // TODO: Move this test to super after SPARK-33875 implements DESCRIBE COLUMN for v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this as IDed TODO like TODO(SPARK-33875) and add some description about Move this test... to SPARK-33875's description.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the linter error.
| super.afterAll() | ||
| } | ||
|
|
||
| test("SHOW CREATE TABLE AS SERDE w/ char/varchar") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
Test build #133332 has finished for PR 30908 at commit
|
|
thanks, merging to master/3.1! |
### What changes were proposed in this pull request? Display char/varchar in - DESC table - DESC column - SHOW CREATE TABLE ### Why are the changes needed? show the correct definition for users ### Does this PR introduce _any_ user-facing change? yes, char/varchar column's will print char/varchar instead of string ### How was this patch tested? new tests Closes #30908 from yaooqinn/SPARK-33892. Authored-by: Kent Yao <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 29cca68) Signed-off-by: Wenchen Fan <[email protected]>
|
Test build #133347 has finished for PR 30908 at commit
|
What changes were proposed in this pull request?
Display char/varchar in
Why are the changes needed?
show the correct definition for users
Does this PR introduce any user-facing change?
yes, char/varchar column's will print char/varchar instead of string
How was this patch tested?
new tests