MaxGekk opened a new pull request #30778:
URL: https://github.com/apache/spark/pull/30778


   ### What changes were proposed in this pull request?
   Throw `NoSuchPartitionsException` from `ALTER 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 
exception `AnalysisException`.
   
   ### How was this patch tested?
   By running tests for `ALTER TABLE .. DROP PARTITION`:
   ```
   $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly 
*AlterTableDropPartitionSuite"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to