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

Wenchen Fan updated SPARK-59801:
--------------------------------
    Affects Version/s: 4.4.0
                           (was: 5.0.0)

> Fix internal error for non-foldable options maps
> ------------------------------------------------
>
>                 Key: SPARK-59801
>                 URL: https://issues.apache.org/jira/browse/SPARK-59801
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.4.0
>            Reporter: Wenchen Fan
>            Assignee: Wenchen Fan
>            Priority: Major
>              Labels: pull-request-available
>
> SQL functions such as to_csv require their options map to be foldable. 
> ExprUtils.convertToMapData currently evaluates a non-foldable CreateMap 
> during analysis, which attempts to evaluate an AttributeReference and raises 
> INTERNAL_ERROR. Detect non-foldable options maps before evaluation and return 
> a structured analysis error instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to