averyqi-db commented on code in PR #48865:
URL: https://github.com/apache/spark/pull/48865#discussion_r1874040087


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala:
##########
@@ -609,6 +609,9 @@ case class InSet(child: Expression, hset: Set[Any]) extends 
UnaryExpression with
   require(hset != null, "hset could not be null")
 
   override def toString: String = {
+    if (!child.resolved) {
+      return s"$child INSET " + hset.toSeq.mkString("(", ", ", ")")

Review Comment:
   How about we don't output the values for non resolved child? Cause in normal 
cases, the query finally gets resolved and it will output values with resolved 
datatypes. @cloud-fan @MaxGekk 



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