You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Huanli Wang (Jira)" <ji...@apache.org> on 2025/10/31 20:25:00 UTC
[jira] [Updated] (SPARK-54118) Improve the put/merge operation in ListState when t here are multiple values
[ https://issues.apache.org/jira/browse/SPARK-54118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Huanli Wang updated SPARK-54118:
--------------------------------
Issue Type: Improvement (was: Bug)
> Improve the put/merge operation in ListState when t here are multiple values
> ----------------------------------------------------------------------------
>
> Key: SPARK-54118
> URL: https://issues.apache.org/jira/browse/SPARK-54118
> Project: Spark
> Issue Type: Improvement
> Components: Structured Streaming
> Affects Versions: 4.1.0
> Reporter: Huanli Wang
> Priority: Major
>
> In SS TWS, when we do the `{{{}put(array)` {}}}operation in liststate, we put the first element and then merge the remaining elements one by one. so if we want to put an array with 100 elements, it means we need do 1 put + 99 merges. This can result in worse performance than a single put operation for the entire array.
>
> Similar, we have the same issue in {{`merge(array)`}}
--
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