rdblue opened a new pull request #24768: [SPARK-27919][SQL] Add v2 session 
catalog
URL: https://github.com/apache/spark/pull/24768
 
 
   ## What changes were proposed in this pull request?
   
   This fixes a problem where it is possible to create a v2 table using the 
default catalog that cannot be loaded with the session catalog. A session 
catalog should be used when the v1 catalog is responsible for tables with no 
catalog in the table identifier.
   
   * Adds a v2 catalog implementation that delegates to the analyzer's 
SessionCatalog
   * Uses the v2 session catalog for CTAS and CreateTable when the provider is 
a v2 provider and no v2 catalog is in the table identifier
   * Updates catalog lookup to always provide the default if it is set for 
consistent behavior
   
   ## How was this patch tested?
   
   * Adds a new test suite for the v2 session catalog that validates the 
TableCatalog API
   * Adds test cases in PlanResolutionSuite to validate the v2 session catalog 
is used
   * Adds test suite for Transform extractors used by the v2 session catalog
   * Adds test suite for LookupCatalog with a default catalog

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