Skip to content

Commit

Permalink
rebase solution
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Sep 24, 2014
1 parent 729952a commit 2458229
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ object HiveMetastoreTypes extends RegexParsers {
case BooleanType => "boolean"
case DecimalType => "decimal"
case TimestampType => "timestamp"
case NullType => "void"
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NULL
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ class HiveQuerySuite extends HiveComparisonTest {
createQueryTest("timestamp cast #8",
"SELECT CAST(CAST(-1.2 AS TIMESTAMP) AS DOUBLE) FROM src LIMIT 1")

createQueryTest("select null from table",
"SELECT null FROM src LIMIT 1")

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 2458229

Please sign in to comment.