You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2022/06/07 05:35:00 UTC
[jira] [Updated] (SPARK-39392) Refine ANSI error messages and remove 'To return NULL instead'
[ https://issues.apache.org/jira/browse/SPARK-39392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-39392:
---------------------------------
Affects Version/s: 3.4.0
(was: 3.4)
> Refine ANSI error messages and remove 'To return NULL instead'
> --------------------------------------------------------------
>
> Key: SPARK-39392
> URL: https://issues.apache.org/jira/browse/SPARK-39392
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Vitalii Li
> Priority: Major
>
> Proposal: remove ‘To return NULL instead’ as this should not be the purpose and the user may not even aware it was returning NULLs.
> Example:
> Old:
> {{1[MAP_KEY_DOES_NOT_EXIST] Key 3 does not exist. To return NULL instead, use `try_element_at`. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error.2== SQL(line 1, position 8) ==3SELECT m[3] FROM VALUES(map(1, 'Hello', 2, ...4 ^^^^}}
> Proposed:
> {{1[MAP_KEY_DOES_NOT_EXIST] Key 3 does not exist in the map. Use `try_element_at` to tolerate a non-existent key and return NULL. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error.2== SQL(line 1, position 8) ==3SELECT m[3] FROM VALUES(map(1, 'Hello', 2, ...4 ^^^^}}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org