[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org