yaooqinn commented on a change in pull request #28420:
URL: https://github.com/apache/spark/pull/28420#discussion_r418520909
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/package.scala
##########
@@ -142,7 +142,10 @@ package object util extends Logging {
"`" + name.replace("`", "``") + "`"
}
- def toPrettySQL(e: Expression): String = usePrettyExpression(e).sql
+ def toPrettySQL(e: Expression): String = e match {
+ case r: RuntimeReplaceable => r.prettySQL
Review comment:
https://github.com/apache/spark/pull/28420/files#diff-6f4edc80e2cc973e748705e85a6053b4R788-R807
fixed and added some nested tests, thanks, good catch!
----------------------------------------------------------------
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]