Skip to content

Commit

Permalink
SPARK-24012 remove UT from SQLQuerySuite
Browse files Browse the repository at this point in the history
  • Loading branch information
liutang123 committed Apr 24, 2018
1 parent 8cb240f commit 4b1ce36
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -896,25 +896,6 @@ 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),
Row(Map(1 -> 2), "str") :: Row(Map(1 -> 2, 3 -> null), "1") :: Nil
)
checkAnswer(
sql(
"""
|SELECT array(1), 'str'
|UNION ALL
|SELECT array(1, 2, 3, NULL), 1""".stripMargin),
Row(Array(1), "str") :: Row(Array(1, 2, 3, null), "1") :: Nil
)
}

test("EXCEPT") {
checkAnswer(
sql("SELECT * FROM lowerCaseData EXCEPT SELECT * FROM upperCaseData"),
Expand Down

0 comments on commit 4b1ce36

Please sign in to comment.