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/21 15:51:00 UTC

[jira] [Assigned] (SPARK-58007) Support dynamic table options for MERGE

     [ https://issues.apache.org/jira/browse/SPARK-58007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun reassigned SPARK-58007:
-------------------------------------

    Assignee: Anurag Mantripragada

> Support dynamic table options for MERGE
> ---------------------------------------
>
>                 Key: SPARK-58007
>                 URL: https://issues.apache.org/jira/browse/SPARK-58007
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 5.0.0
>            Reporter: Anurag Mantripragada
>            Assignee: Anurag Mantripragada
>            Priority: Major
>              Labels: pull-request-available
>
> Spark supports a per-statement `WITH (key = value)` options clause on `SELECT` (SPARK-36680), `INSERT` (SPARK-49098), and `UPDATE` (SPARK-57681) is in progress. These options are passed to DataSource V2 connectors so a single statement can tune how the source reads or writes.
> `MERGE` does not support this yet. This ticket is to add the `WITH (...)` clause to `MERGE`, for both the target and the source:
> ```sql
> MERGE INTO target_table WITH (`write.split-size` = 10) AS t
> USING source_table WITH (`split-size` = 5) AS s
> ON t.id = s.id
> WHEN MATCHED THEN UPDATE SET ...
> WHEN NOT MATCHED THEN INSERT ...
> ```



--
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