Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24907 Migrate JDBC data source to DataSource API v2
  3. SPARK-32592

Make `DataFrameReader.table` take the specified options

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Currently, `DataFrameReader.table` ignores the specified options. The options specified like the following are lost.

          val df = spark.read
            .option("partitionColumn", "id")
            .option("lowerBound", "0")
            .option("upperBound", "3")
            .option("numPartitions", "2")
            .table("h2.test.people")
      

      We need to make `DataFrameReader.table` take the specified options.

        Attachments

          Activity

            People

            • Assignee:
              huaxingao Huaxin Gao
              Reporter:
              huaxingao Huaxin Gao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: