cloud-fan commented on a change in pull request #30974:
URL: https://github.com/apache/spark/pull/30974#discussion_r559336612



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/package.scala
##########
@@ -129,6 +129,7 @@ package object util extends Logging {
     case a: Attribute => new PrettyAttribute(a)
     case Literal(s: UTF8String, StringType) => PrettyAttribute(s.toString, 
StringType)
     case Literal(v, t: NumericType) if v != null => 
PrettyAttribute(v.toString, t)
+    case Literal(null, t) => PrettyAttribute("NULL", t)

Review comment:
       Let's open a new PR to fix it.




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

Reply via email to