dongjoon-hyun commented on a change in pull request #32577:
URL: https://github.com/apache/spark/pull/32577#discussion_r634064688
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
##########
@@ -544,7 +544,14 @@ case class InSet(child: Expression, hset: Set[Any])
extends UnaryExpression with
require(hset != null, "hset could not be null")
- override def toString: String = s"$child INSET ${hset.mkString("(", ",",
")")}"
+ override def toString: String = {
+ val listString = hset.toSeq
+ .map(elem => Literal(elem, child.dataType).toString)
+ // Sort elements for deterministic behaviours
+ .sorted
Review comment:
Got it. Thank you for checking.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]