wangyum opened a new pull request #24995: [SPARK-28196][SQL] Add a new 
`listTables` and `listLocalTempViews` APIs for SessionCatalog
URL: https://github.com/apache/spark/pull/24995
 
 
   ## What changes were proposed in this pull request?
   
   This pr add two API for 
[SessionCatalog](https://github.com/apache/spark/blob/df4cb471c9712a2fe496664028d9303caebd8777/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala):
   ```scala
   def listTables(db: String, pattern: String, includeLocalTempViews: Boolean): 
Seq[TableIdentifier]
   
   def listLocalTempViews(pattern: String): Seq[TableIdentifier]
   ```
   Because in some cases `listTables` does not need local temporary view and 
sometimes only need list local temporary view.
   
   ## How was this patch tested?
   
   unit tests

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