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


   ### What changes were proposed in this pull request?
   Remove special handling of `CacheTable` in `TestHiveQueryExecution. 
analyzed` because it prevents support of `spark_catalog` in Hive table names. 
`spark_catalog` is handled by a few lines below:
   ```scala
         case UnresolvedRelation(ident, _, _) =>
           if (ident.length > 1 && 
ident.head.equalsIgnoreCase(CatalogManager.SESSION_CATALOG_NAME)) {
   ```
   added by https://github.com/apache/spark/pull/30883.
   
   ### Why are the changes needed?
   1. To have feature parity with v1 In-Memory catalog.
   2. To be able to write unified tests for In-Memory and Hive external 
catalogs.
   
   ### Does this PR introduce _any_ user-facing change?
   Should not.
   
   ### How was this patch tested?
   By running the test suite with new UT:
   ```
   $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *CachedTableSuite"
   ```


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