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

Add sorted column in BucketTransform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      In V1, we can create table with sorted bucket like the following:

            sql("CREATE TABLE tbl(a INT, b INT) USING parquet " +
              "CLUSTERED BY (a) SORTED BY (b) INTO 5 BUCKETS")
      

      However, creating table with sorted bucket in V2 failed with Exception

      org.apache.spark.sql.AnalysisException: Cannot convert bucketing with sort columns to a transform.
      

      We should be able to create table with sorted bucket in V2.

      Attachments

        Activity

          People

            huaxingao Huaxin Gao
            huaxingao Huaxin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: