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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]