[ 
https://issues.apache.org/jira/browse/SPARK-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318375#comment-15318375
 ] 

Apache Spark commented on SPARK-15803:
--------------------------------------

User 'zjffdu' has created a pull request for this issue:
https://github.com/apache/spark/pull/13541

> Support with statement syntax for SparkSession
> ----------------------------------------------
>
>                 Key: SPARK-15803
>                 URL: https://issues.apache.org/jira/browse/SPARK-15803
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 2.0.0
>            Reporter: Jeff Zhang
>            Priority: Minor
>
> It would be nice to support with statement syntax for SparkSession like 
> following
> {code}
> with SparkSession.builder.(...).getOrCreate() as session:
>   session.sql("show tables").show()
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to