panbingkun commented on code in PR #48082:
URL: https://github.com/apache/spark/pull/48082#discussion_r1756179396


##########
sql/core/src/test/resources/sql-tests/analyzer-results/ansi/array.sql.out:
##########
@@ -194,25 +194,8 @@ org.apache.spark.sql.catalyst.ExtendedAnalysisException
 -- !query
 select sort_array(array('b', 'd'), cast(NULL as boolean))

Review Comment:
   I'm not sure if this belongs to `break changes`, because according to 
`sort_array's` definition (extends `NullIntolerant`), it's reasonable for it to 
return `NULL` in this scenario
   
https://github.com/apache/spark/blob/8023504e69fdd037dea002e961b960fd9fa662ba/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala#L1049-L1050



-- 
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]

Reply via email to