wangyum opened a new pull request #28056: [SPARK-31288][SQL] Reduce calls to 
requireDbExists and requireTableExists
URL: https://github.com/apache/spark/pull/28056
 
 
   ### What changes were proposed in this pull request?
   This PR removed some calls to `requireDbExists` and `requireTableExists` in 
`InMemoryCatalog`  and  `HiveExternalCatalog` because we has checked it  in 
`SessionCatalog`.
   
   For e.g.: SessionCatalog.createTable checked `requireDbExists`  in  
   
https://github.com/apache/spark/blob/66b4fd040e97cb6de6536a5545017278879c98fb/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala#L318
   
   
https://github.com/apache/spark/blob/66b4fd040e97cb6de6536a5545017278879c98fb/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala#L246
   
   ### Why are the changes needed?
   Improve `HiveExternalCatalog` performance.
   
   
   ### Does this PR introduce any user-facing change?
   No.
   
   
   ### How was this patch tested?
   Exist test.
   

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


With regards,
Apache Git Services

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

Reply via email to