Skip to content

Commit

Permalink
Revert "[SPARK-33292][SQL] Make Literal ArrayBasedMapData string repr…
Browse files Browse the repository at this point in the history
…esentation disambiguous"

This reverts commit 7a3be12.
  • Loading branch information
dongjoon-hyun committed Oct 30, 2020
1 parent 7a3be12 commit 6ae6999
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Expand Up @@ -240,7 +240,6 @@ 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})"
case other => other.toString
}

Expand Down
Expand Up @@ -198,7 +198,6 @@ class LiteralExpressionSuite extends SparkFunSuite with ExpressionEvalHelper {
}
checkMapLiteral(Map("a" -> 1, "b" -> 2, "c" -> 3))
checkMapLiteral(Map("1" -> 1.0, "2" -> 2.0, "3" -> 3.0))
assert(Literal.create(Map("a" -> 1)).toString === "map(keys: [a], values: [1])")
}

test("struct") {
Expand Down

0 comments on commit 6ae6999

Please sign in to comment.