Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/15308
  
    In the code base, the table type of a temporary view is still a `VIEW`. 
Maybe we should replace `TEMPORARY` by `VIEW` in 
[here](https://github.com/hvanhovell/spark/blob/d07d174bf2659e8f2d18c9a28a378a5bb45aa8a7/sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala#L111),
 since we already have another field `isTemporary`. 
    
    Or we also can call `getTempViewOrPermanentTableMetadata` instead of 
`getTableMetadata` [when retrieving the 
metadata](https://github.com/hvanhovell/spark/blob/d07d174bf2659e8f2d18c9a28a378a5bb45aa8a7/sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala#L106).
 It can simplify the code and also help the case for the ongoing PR for 
introducing global temporary views. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to