Wenchen Fan created SPARK-59801:
-----------------------------------
Summary: 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: 5.0.0
Reporter: Wenchen Fan
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]