You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/12/13 07:48:00 UTC

[jira] [Commented] (SPARK-37627) Add sorted column in BucketTransform

    [ https://issues.apache.org/jira/browse/SPARK-37627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458185#comment-17458185 ] 

Apache Spark commented on SPARK-37627:
--------------------------------------

User 'huaxingao' has created a pull request for this issue:
https://github.com/apache/spark/pull/34879

> 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
>            Priority: Minor
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org