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

Treat unknown partitioning as UnknownPartitioning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1, 3.4.0
    • Spark Core
    • None

    Description

      When running spark application against spark 3.3, I see the following :

      java.lang.IllegalArgumentException: Unsupported data source V2 partitioning type: CustomPartitioning
          at org.apache.spark.sql.execution.datasources.v2.V2ScanPartitioning$$anonfun$apply$1.applyOrElse(V2ScanPartitioning.scala:46)
          at org.apache.spark.sql.execution.datasources.v2.V2ScanPartitioning$$anonfun$apply$1.applyOrElse(V2ScanPartitioning.scala:34)
          at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformDownWithPruning$1(TreeNode.scala:584)
      

      The CustomPartitioning works fine with Spark 3.2.1
      This PR proposes to relax the code and treat all unknown partitioning the same way as that for UnknownPartitioning.

      Attachments

        Issue Links

          Activity

            People

              tedyu@apache.org Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: