Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21100#discussion_r182981770
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala 
---
    @@ -896,6 +896,19 @@ class SQLQuerySuite extends QueryTest with 
SharedSQLContext {
         }
       }
     
    +  test("SPARK-24012 Union of map and other compatible columns") {
    +    checkAnswer(
    +      sql(
    +        """
    +          |SELECT map(1, 2), 'str'
    +          |UNION ALL
    +          |SELECT map(1, 2, 3, NULL), 1""".stripMargin),
    --- End diff --
    
    Shall we make map<int, nullable int> and map<int, not nullable int> 
coerce-able?


---

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

Reply via email to