ulysses-you commented on PR #2848:
URL: 
https://github.com/apache/incubator-kyuubi/pull/2848#issuecomment-1151852249

   Accroiding to the comments of how to resolve global_temp, we should mark 
global_temp as a special catalog. But given Spark has not supported v2 catalog 
for view, we can mark global_temp as a special table in spark built-in catalog 
spark_catalog.
   
   
https://github.com/apache/spark/blob/b5c7f34b576d25aec292c65e7565360d67142227/sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/LookupCatalog.scala#L113-L119
   
   So the snapshot after correct the issue will be:
   ```
   tpcd
     - sf0
     - tiny
     - sf1
     - sf10
     - sf30
   
   spark_catalog
     - default
     - global_temp
   
   ......
   ```
   
   If Spark supports v2 catalog for view in future, we can change it to:
   ```
   tpcd
     - sf0
     - tiny
     - sf1
     - sf10
     - sf30
   
   spark_catalog
     - default
   
   global_temp
   
   ......
   ```


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