[ https://issues.apache.org/jira/browse/SPARK-41181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk resolved SPARK-41181. ------------------------------ Fix Version/s: 3.4.0 Resolution: Fixed Issue resolved by pull request 38730 [https://github.com/apache/spark/pull/38730] > Migrate the map options errors onto error classes > ------------------------------------------------- > > Key: SPARK-41181 > URL: https://issues.apache.org/jira/browse/SPARK-41181 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.4.0 > Reporter: Max Gekk > Assignee: BingKun Pan > Priority: Major > Fix For: 3.4.0 > > > The example below demonstrates the issue: > {code} > > select from_csv('1', 'a INT', named_struct('mode', 'PERMISSIVE')) > org.apache.spark.sql.AnalysisException > { > "errorClass" : "LEGACY", > "messageParameters" : { > "message" : "Must use a map() function for options.; line 1 pos 7" > } > } > {code} > and > {code} > > select to_csv(named_struct('a', 1, 'b', 2), map('mode', 1)); > org.apache.spark.sql.AnalysisException > { > "errorClass" : "LEGACY", > "messageParameters" : { > "message" : "A type of keys and values in map() must be string, but got > map<string,int>.; line 1 pos 7" > } > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org