dchvn opened a new pull request #35007:
URL: https://github.com/apache/spark/pull/35007


   ### What changes were proposed in this pull request?
   According to 
[#cmt](https://github.com/apache/spark/pull/34819#discussion_r763629569), unify 
the error of v1, v2 and hive external catalog in DROP NAMESPACE tests.
   
   
   ### Why are the changes needed?
   Currently, v1 and hive external catalog command throw `AnalysisException`, 
while v2 command throws `SparkException`. The error messages of v1 and hive 
catalog are also completely different from v2.
   So this PR is for unifying those errors to `AnalysisException`. The error 
message will have one difference between v1/hive and v2: `Cannot drop a 
non-empty database: ...` vs `Cannot drop a non-empty namespace: ...`
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   v1/v2 and Hive v1 DropNamespaceSuite:
   
   ```$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly 
*DropNamespaceSuite"```
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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