You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by arman1371 <gi...@git.apache.org> on 2017/05/13 04:40:13 UTC

[GitHub] spark pull request #16598: [SPARK-19236][Core] Added createOrReplaceGlobalTe...

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

    https://github.com/apache/spark/pull/16598#discussion_r116350696
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -2603,6 +2603,21 @@ class Dataset[T] private[sql](
       def createGlobalTempView(viewName: String): Unit = withPlan {
         createTempViewCommand(viewName, replace = false, global = true)
       }
    +    
    +  /**
    +   * Creates or replaces a global temporary view using the given name. The lifetime of this
    +   * temporary view is tied to this Spark application.
    +   *
    +   * 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`.
    +   *
    +   * @group basic
    --- End diff --
    
    But it seems it's not added in 2.1.1


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org