Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14897#discussion_r82658617
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/catalog/Catalog.scala ---
    @@ -262,15 +262,33 @@ abstract class Catalog {
           options: Map[String, String]): DataFrame
     
       /**
    -   * Drops the temporary view with the given view name in the catalog.
    +   * Drops the local temporary view with the given view name in the 
catalog.
        * If the view has been cached before, then it will also be uncached.
        *
    +   * Local temporary view is session-scoped. Its lifetime is the lifetime 
of the session that
    +   * created it, i.e. it will be automatically dropped when the session 
terminates. It's not
    +   * tied to any databases, i.e. we can't use `db1.view1` to reference a 
local temporary view.
    +   *
        * @param viewName the name of the view to be dropped.
        * @since 2.0.0
        */
       def dropTempView(viewName: String): Unit
     
       /**
    +   * Drops the global temporary view with the given view name in the 
catalog.
    +   * If the view has been cached before, then it will also be uncached.
    +   *
    +   * Global temporary view is cross-session. Its lifetime is the lifetime 
of the Spark application,
    +   * i.e. it will be automatically dropped when the application 
terminates. It's tied to a system
    +   * preserved database `_global_temp`, and we must use the qualified name 
to refer a global temp
    +   * view, e.g. `SELECT * FROM _global_temp.view1`.
    +   *
    +   * @param viewName the name of the view to be dropped.
    +   * @since 2.1.0
    +   */
    +  def dropGlobalTempView(viewName: String): Boolean
    --- End diff --
    
    need to explain the return type


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