-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20954][SQL] DESCRIBE [EXTENDED] result should be compatible with previous Spark
#18203
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
… previous Spark and Hive.
|
Test build #77734 has started for PR 18203 at commit |
|
Retest this please |
|
Test build #77735 has finished for PR 18203 at commit
|
|
Test build #77737 has finished for PR 18203 at commit
|
|
Hi, @gatorsmile . |
|
Hi, @gatorsmile and @cloud-fan . |
|
LGTM, cc @gatorsmile for final sign-off |
| s"DESC PARTITION is not allowed on a temporary view: ${table.identifier}") | ||
| } | ||
| describeSchema(catalog.lookupRelation(table).schema, result) | ||
| describeSchema(catalog.lookupRelation(table).schema, result, isExtended) |
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.
When specifying Extend, we should also remove it too, right? @cloud-fan
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.
Thank you Right. This PR considered only simple DESC. I'll update 'DESC EXTENDED', too. It is different from DESC FORMATTED as you pointed.
DESCRIBE result should be compatible with previous SparkDESCRIBE [EXTENDED] result should be compatible with previous Spark
| partitionSpec, | ||
| ctx.EXTENDED != null || ctx.FORMATTED != null) | ||
| ctx.EXTENDED != null, | ||
| ctx.FORMATTED != null) |
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.
we deprecated DESC FORMATTED intentionally, and made DESC EXTENDED behave as DESC FORMATTED. I really don't think users will query the result of DESC EXTENDED before, as all the detail table information is inside one column, so it's probably fine to break this behavior just for display.
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.
Oh, I see. Then, you want remove the header completely for all case. Did I understand correctly?
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.
Or, do I simple revert the following two commits after your review?
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.
For DESC t, we should change it back to be compatible with before, for DESC EXTENDED, it should be same as DESC FORMATTED, so we don't need to change it.
|
Test build #77812 has finished for PR 18203 at commit
|
|
Test build #77813 has finished for PR 18203 at commit
|
|
Oops. I'll ping again. Sorry. I didn't push it. |
|
Test build #77819 has finished for PR 18203 at commit
|
|
LGTM |
|
Thank you. Please wait for a run. The last style fix is not tested by Jenkins. |
|
thanks, merging to master! can you send a new PR for 2.2? |
|
oops, I though it has passed tests... Let's see the test result then |
|
Sorry for that. I'll start to prepare a new PR for 2.2. |
|
Test build #77827 has finished for PR 18203 at commit
|
|
It passed. Also, a PR for branch-2.2, #18245, passed, too. |
|
Thank you for review and merge both PRs, @gatorsmile and @cloud-fan . |
What changes were proposed in this pull request?
After SPARK-20067,
DESCRIBEandDESCRIBE EXTENDEDshows the following result. This is incompatible with Spark 2.1.1. This PR removes the column header line in case of those command.MASTER and BRANCH-2.2
SPARK 2.1.1 and this PR
How was this patch tested?
Pass the Jenkins with the updated test suites.