Gschiavon commented on issue #25728: [SPARK-29020][WIP][SQL] Improving 
array_sort behaviour
URL: https://github.com/apache/spark/pull/25728#issuecomment-538425396
 
 
   No problem @kiszk . 
   Hmm I think is a different case. Im trying to do this:
   `  lazy val comparator: (Expression, Expression) => Expression = (x, y) => {
         if (x < y) 1
         else if (x == y) 0
         else -1
       }  `
   and then:
    `  checkEvaluation(sort(a0, comparator), Seq(1, 2, 3)) `  
   
   But I can't compare 2 expressions, and I don't know how to do this part

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to