You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2026/07/29 15:49:00 UTC
[jira] [Assigned] (SPARK-58330) Prevent silent dropping of dynamic options on same table references
[ https://issues.apache.org/jira/browse/SPARK-58330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun reassigned SPARK-58330:
-------------------------------------
Assignee: Anurag Mantripragada
> Prevent silent dropping of dynamic options on same table references
> -------------------------------------------------------------------
>
> Key: SPARK-58330
> URL: https://issues.apache.org/jira/browse/SPARK-58330
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.2.0
> Reporter: Anurag Mantripragada
> Assignee: Anurag Mantripragada
> Priority: Major
> Labels: pull-request-available
>
> Spark supports a per-statement `WITH (key = value)` dynamic table options clause on all queries. When a single statement references the same table more than once with different options, only the first-resolved reference's options are honored; the other reference's options are silently dropped.
> Examples (each drops one side's options):
> {{INSERT INTO t WITH (`write.split-size` = 10) SELECT * FROM t}}
> {{MERGE INTO t WITH (`write.split-size` = 10)}}
> {{USING t WITH (`split-size` = 5) s}}
> {{ON t.id = s.id}}
> {{WHEN MATCHED THEN UPDATE SET ...}}
> {{UPDATE t WITH (`write.split-size` = 10) SET ...}}
> {{WHERE id IN (SELECT id FROM t WITH (`split-size` = 5))}}
--
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