[
https://issues.apache.org/jira/browse/SPARK-59801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-59801.
---------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 59072
[https://github.com/apache/spark/pull/59072]
> 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
> Fix For: 4.4.0
>
>
> 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]