You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2026/05/27 08:01:00 UTC

[jira] [Updated] (SPARK-55047) dd client-side limit for local relation size

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

Ruifeng Zheng updated SPARK-55047:
----------------------------------
    Summary: dd client-side limit for local relation size  (was: [CONNECT] Add client-side limit for local relation size)

> dd client-side limit for local relation size
> --------------------------------------------
>
>                 Key: SPARK-55047
>                 URL: https://issues.apache.org/jira/browse/SPARK-55047
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: 4.1.1
>            Reporter: Alex Khakhlyuk
>            Assignee: Alex Khakhlyuk
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> Currently, local relation sizes are limited using {{spark.sql.session.localRelationSizeLimit}} conf (set to 3GB by default).
> This limit is only checked on the server. The client can upload arbitrary large relations, e.g. 100 GB, as artifacts, the server will store them, try to materialize the local relation on the driver and only then throw an error if the relation exceeds the limit.
> This is bad for several reasons:
>  # The driver will need to store arbitrary amount of data and can run out of memory or disk space causing driver failure.
>  # The client wastes a lot of time uploading the data to the server only to fail later. This is bad UX.
> This should be solved by enforcing the limit on the client.
> If the client sees that the local relation it serializes exceeds the limit, it will throw an {{AnalysisException}} with error class {{LOCAL_RELATION_SIZE_LIMIT_EXCEEDED}} and sql state {{54000}} (program limit exceeded).



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