Skip to content

Commit

Permalink
Update HiveQuerySuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
YanTangZhai committed Dec 3, 2014
1 parent e572b9a commit 72accf1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
createQueryTest("select null from table",
"SELECT null FROM src LIMIT 1")

createQueryTest("predicates contains an empty AttributeSet() references",
"""
|SELECT a FROM (
| SELECT 1 AS a FROM src LIMIT 1 ) table
|WHERE abs(20141202) is not null
""".stripMargin)

test("implement identity function using case statement") {
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
.map { case Row(i: Int) => i }
Expand Down

0 comments on commit 72accf1

Please sign in to comment.