-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-33788][SQL] Throw NoSuchPartitionsException from HiveExternalCatalog.dropPartitions() #30778
Conversation
Kubernetes integration test starting |
Kubernetes integration test status success |
Test build #132820 has finished for PR 30778 at commit
|
The test failure "org.apache.spark.sql.hive.thriftserver.ThriftServerQueryTestSuite.subquery/scalar-subquery/scalar-subquery-select.sql" is not related to the changes. |
jenkins, retest this, please |
Kubernetes integration test starting |
Test build #132824 has finished for PR 30778 at commit
|
Kubernetes integration test status success |
Merged to master. |
@MaxGekk, it has a conflict in other branches. do you want to backport? |
…atalog.dropPartitions() Throw `NoSuchPartitionsException` from `ALTER TABLE .. DROP TABLE` for not existing partitions of a table in V1 Hive external catalog. The behaviour of Hive external catalog deviates from V1/V2 in-memory catalogs that throw `NoSuchPartitionsException`. To improve user experience with Spark SQL, it would be better to throw the same exception. Yes, the command throws `NoSuchPartitionsException` instead of the general exception `AnalysisException`. By running tests for `ALTER TABLE .. DROP PARTITION`: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableDropPartitionSuite" ``` Closes apache#30778 from MaxGekk/hive-drop-partition-exception. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 3dfdcf4) Signed-off-by: Max Gekk <max.gekk@gmail.com>
@HyukjinKwon Here is the backports to 3.1/3.0/2.4: #30802 . I ran the test suite |
… in `HiveClientImpl` ### What changes were proposed in this pull request? Update the SQL migration guide about the changes made by: - #30778 - #30711 - #30866 ### Why are the changes needed? To inform users about the recent changes in the upcoming releases. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A Closes #30925 from MaxGekk/sql-migr-guide-hiveclientimpl. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…anges in `HiveClientImpl` ### What changes were proposed in this pull request? Update the SQL migration guide about the changes made by: - #30778 - #30711 ### Why are the changes needed? To inform users about the recent changes in the upcoming releases. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A Closes #30931 from MaxGekk/sql-migr-guide-hiveclientimpl-3.1. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…anges in `HiveClientImpl` ### What changes were proposed in this pull request? Update the SQL migration guide about the changes made by: - #30778 - #30711 ### Why are the changes needed? To inform users about the recent changes in the upcoming releases. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A Closes #30932 from MaxGekk/sql-migr-guide-hiveclientimpl-3.0. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…anges in `HiveClientImpl` ### What changes were proposed in this pull request? Update the SQL migration guide about the changes made by: - #30778 - #30711 ### Why are the changes needed? To inform users about the recent changes in the upcoming releases. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A Closes #30933 from MaxGekk/sql-migr-guide-hiveclientimpl-2.4. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
What changes were proposed in this pull request?
Throw
NoSuchPartitionsException
fromALTER TABLE .. DROP TABLE
for not existing partitions of a table in V1 Hive external catalog.Why are the changes needed?
The behaviour of Hive external catalog deviates from V1/V2 in-memory catalogs that throw
NoSuchPartitionsException
. To improve user experience with Spark SQL, it would be better to throw the same exception.Does this PR introduce any user-facing change?
Yes, the command throws
NoSuchPartitionsException
instead of the general exceptionAnalysisException
.How was this patch tested?
By running tests for
ALTER TABLE .. DROP PARTITION
: