Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14114#discussion_r70172672
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
 ---
    @@ -442,6 +442,10 @@ class SessionCatalog(
         name.database.isEmpty && 
tempTables.contains(formatTableName(name.table))
       }
     
    +  def listTemporaryTableOutput(name: String): Seq[Attribute] = {
    --- End diff --
    
    Ah. I remember that why I do this in this way. Basically, there are two 
barriers to reach `getTableMetadata`. Before making change, let me describe 
here.
    
    1. Redirecting: `listColumns(table)`  -> `listColumns(currentDatabase, 
tableName)`
    2. Table existence failure: `requireTableExists(dbName, tableName)` in 
`listColumns(currentDatabase, tableName)`.
    
    Anyway, I'm trying to change the above barriers.


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