You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "XiDuo You (Jira)" <ji...@apache.org> on 2022/09/06 09:51:00 UTC
[jira] [Updated] (SPARK-40354) Support eliminate dynamic partition for v1 writes
[ https://issues.apache.org/jira/browse/SPARK-40354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
XiDuo You updated SPARK-40354:
------------------------------
Description:
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}
was:
v1 writes will add a 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}
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org