-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-33670][SQL] Verify the partition provider is Hive in v1 SHOW TABLE EXTENDED #30618
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
[SPARK-33670][SQL] Verify the partition provider is Hive in v1 SHOW TABLE EXTENDED #30618
Conversation
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #132271 has finished for PR 30618 at commit
|
|
|
||
| class ShowTablesSuite extends ShowTablesSuiteBase with SharedSparkSession | ||
| class ShowTablesSuite extends ShowTablesSuiteBase with SharedSparkSession { | ||
| test("show partitions from a datasource table") { |
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 JIRA prefix, @MaxGekk?
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.
I didn't add because tests from the suite have a prefix already. See the base trait where we override the test() method. Maybe, 2 prefixes are ok.
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #132284 has finished for PR 30618 at commit
|
|
Merged to master, branch-3.1. |
…ABLE EXTENDED ### What changes were proposed in this pull request? Invoke the check `DDLUtils.verifyPartitionProviderIsHive()` from V1 implementation of `SHOW TABLE EXTENDED` when partition specs are specified. This PR is some kind of follow up #16373 and #15515. ### Why are the changes needed? To output an user friendly error with recommendation like **" ... partition metadata is not stored in the Hive metastore. To import this information into the metastore, run `msck repair table tableName` "** instead of silently output an empty result. ### Does this PR introduce _any_ user-facing change? Yes. ### How was this patch tested? By running the affected test suites, in particular: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "hive/test:testOnly *PartitionProviderCompatibilitySuite" ``` Closes #30618 from MaxGekk/show-table-extended-verifyPartitionProviderIsHive. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 29096a8) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
|
@MaxGekk it has a conflict with branch-3.0 and I didn't bother to port back since it's a error message change only. But feel free to open a PR to backport if you feel it's worth. |
…ABLE EXTENDED Invoke the check `DDLUtils.verifyPartitionProviderIsHive()` from V1 implementation of `SHOW TABLE EXTENDED` when partition specs are specified. This PR is some kind of follow up apache#16373 and apache#15515. To output an user friendly error with recommendation like **" ... partition metadata is not stored in the Hive metastore. To import this information into the metastore, run `msck repair table tableName` "** instead of silently output an empty result. Yes. By running the affected test suites, in particular: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "hive/test:testOnly *PartitionProviderCompatibilitySuite" ``` Closes apache#30618 from MaxGekk/show-table-extended-verifyPartitionProviderIsHive. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 29096a8) Signed-off-by: Max Gekk <max.gekk@gmail.com>
…ABLE EXTENDED Invoke the check `DDLUtils.verifyPartitionProviderIsHive()` from V1 implementation of `SHOW TABLE EXTENDED` when partition specs are specified. This PR is some kind of follow up apache#16373 and apache#15515. To output an user friendly error with recommendation like **" ... partition metadata is not stored in the Hive metastore. To import this information into the metastore, run `msck repair table tableName` "** instead of silently output an empty result. Yes. By running the affected test suites, in particular: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "hive/test:testOnly *PartitionProviderCompatibilitySuite" ``` Closes apache#30618 from MaxGekk/show-table-extended-verifyPartitionProviderIsHive. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 29096a8) Signed-off-by: Max Gekk <max.gekk@gmail.com>
|
Here are backports to: |
What changes were proposed in this pull request?
Invoke the check
DDLUtils.verifyPartitionProviderIsHive()from V1 implementation ofSHOW TABLE EXTENDEDwhen partition specs are specified.This PR is some kind of follow up #16373 and #15515.
Why are the changes needed?
To output an user friendly error with recommendation like
"
... partition metadata is not stored in the Hive metastore. To import this information into the metastore, run
msck repair table tableName"
instead of silently output an empty result.
Does this PR introduce any user-facing change?
Yes.
How was this patch tested?
By running the affected test suites, in particular: