Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15803

Support with statement syntax for SparkSession

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • PySpark
    • None

    Description

      It would be nice to support with statement syntax for SparkSession like following

      with SparkSession.builder.(...).getOrCreate() as session:
        session.sql("show tables").show()
      
      

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            zjffdu Jeff Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: