Github user ueshin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22013#discussion_r208812207
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/HigherOrderFunctionsSuite.scala
 ---
    @@ -230,4 +236,56 @@ class HigherOrderFunctionsSuite extends SparkFunSuite 
with ExpressionEvalHelper
             (acc, array) => coalesce(aggregate(array, acc, (acc, elem) => acc 
+ elem), acc)),
           15)
       }
    +
    +  test("TransformKeys") {
    +    val ai0 = Literal.create(
    +      Map(1 -> 1, 2 -> 2, 3 -> 3),
    +      MapType(IntegerType, IntegerType))
    +    val ai1 = Literal.create(
    +      Map.empty[Int, Int],
    +      MapType(IntegerType, IntegerType))
    +    val ai2 = Literal.create(
    +      Map(1 -> 1, 2 -> null, 3 -> 3),
    +      MapType(IntegerType, IntegerType))
    --- End diff --
    
    Can you add tests for `Literal.create(null, MapType(IntegerType, 
IntegerType))`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to