cloud-fan commented on code in PR #57380:
URL: https://github.com/apache/spark/pull/57380#discussion_r3615923432


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala:
##########
@@ -2727,6 +2731,8 @@ object AsOfJoin {
     (leftOperand.dataType, rightOperand.dataType) match {
       case (ArrayType(leftElem, _), ArrayType(rightElem, _))
           if DataTypeUtils.sameType(leftElem, rightElem) =>
+        // Array comparison (and ordering distance) use Spark's lexicographic 
array ordering,

Review Comment:
   Please narrow this claim to array comparison. The distance path below uses 
`ZipWith`, which extends to the longer length and supplies `null` for a missing 
element, so unequal lengths produce an element-wise padded distance such as 
`[0, null]`, not a lexicographic length tie-break.



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