[ https://issues.apache.org/jira/browse/SPARK-40354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601673#comment-17601673 ]
Apache Spark commented on SPARK-40354: -------------------------------------- User 'ulysses-you' has created a pull request for this issue: https://github.com/apache/spark/pull/37831 > Support eliminate dynamic partition for v1 writes > ------------------------------------------------- > > Key: SPARK-40354 > URL: https://issues.apache.org/jira/browse/SPARK-40354 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.4.0 > Reporter: XiDuo You > Priority: Major > > v1 writes will add an extra sort for dynamic columns, e.g. > {code:java} > INSERT INTO TABLE t1 PARTITION(p) > SELECT c1, c2, 'a' as p FROM t2 {code} > if the dynamic columns are foldable, we can optimize it to: > {code:java} > INSERT INTO TABLE t1 PARTITION(p='a') > SELECT c1, c2 FROM t2 {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org