You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/06/10 06:31:31 UTC
[GitHub] [spark] dongjoon-hyun commented on a diff in pull request #36812: [SPARK-39419][SQL] Fix ArraySort to throw an exception when the comparator returns null
dongjoon-hyun commented on code in PR #36812:
URL: https://github.com/apache/spark/pull/36812#discussion_r894194221
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -3818,6 +3818,16 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val LEGACY_ALLOW_NULL_COMPARISON_RESULT_IN_ARRAY_SORT =
+ buildConf("spark.sql.legacy.allowNullComparisonResultInArraySort")
+ .internal()
+ .doc("When set to false, `array_sort` function throws an error " +
+ "if the comparator function returns null. " +
+ "If set to true, it restores the legacy behavior that handles null as zero (equal).")
+ .version("3.2.2")
Review Comment:
cc @MaxGekk FYI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org