dongjoon-hyun commented on a change in pull request #30190:
URL: https://github.com/apache/spark/pull/30190#discussion_r514647947



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/literals.scala
##########
@@ -297,6 +297,7 @@ case class Literal (value: Any, dataType: DataType) extends 
LeafExpression {
   override def toString: String = value match {
     case null => "null"
     case binary: Array[Byte] => s"0x" + 
DatatypeConverter.printHexBinary(binary)
+    case d: ArrayBasedMapData => s"map(${d.toString})"

Review comment:
       The **static map**'s `Literal` representation happens to be 
`ArrayBasedMapData` for now, but it can be changed later.




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