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

Proper temp table support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • SQL

    Description

      For proper temp table support, I am proposing to create a temp dir for every SparkSession. This can be done through the following changes:

      1. We add a root temp dir (the path is configurable).
      2. For every SparkSession, we create a temp dir for this SparkSession in the root temp dir.

      To make the semantic of CREATE TEMP TABLE ... USING ... OPTIONS ... AS SELECT easier to understand, I am proposing the following changes:

      1. We only allow FileFormat data sources used by this command.
      2. We make USING clause optional and by default we use the data source set in spark.sql.sources.default.
      3. We do not allow users to add path in the OPTIONS
      4. We save the temp table in the temp location associated with the current SparkSession.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yhuai Yin Huai
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: