Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/17941
  
    @rxin it was from a while back in SPARK-17865
    essentially these are exactly the same in standalone SparkR:
    ```
    sparkR.session()
    ...
    createGlobalTempView(df, "foo")
    sparkR.session.stop()
    ```
    same as
    ```
    sparkR.session()
    ...
    createOrReplaceTempView(df, "foo")
    sparkR.session.stop()
    ```
    this is because in SparkR, `SparkContext` is stopped the same time as 
`SparkSession` (and there is only one session at a time)
    so I think it makes sense to formally support the idea of the "global 
session" as discussed in SPARK-17865; with some changes in session 
initialization and session termination, and R session cleanup, plus more 
documentation and proper testing of global view lifetime beyond session, it 
should be good to have.



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

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

Reply via email to