Huaxin Gao created SPARK-37627:
----------------------------------

             Summary: Add sorted column in BucketTransform
                 Key: SPARK-37627
                 URL: https://issues.apache.org/jira/browse/SPARK-37627
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Huaxin Gao


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

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

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

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

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




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to