Skip to content

Commit

Permalink
Modified Literal(null, NullType) to Literal(null) in DslQuerySuite
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Dec 2, 2014
1 parent 8f366f8 commit 07700cf
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package org.apache.spark.sql

import org.apache.spark.sql.catalyst.analysis._
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.types.NullType

/* Implicits */
import org.apache.spark.sql.catalyst.dsl._
Expand Down Expand Up @@ -296,7 +295,7 @@ class DslQuerySuite extends QueryTest {
)

checkAnswer(
testData.select(sqrt(Literal(null, NullType))),
testData.select(sqrt(Literal(null))),
(1 to 100).map(_ => Seq(null))
)
}
Expand All @@ -313,7 +312,7 @@ class DslQuerySuite extends QueryTest {
)

checkAnswer(
testData.select(abs(Literal(null, NullType))),
testData.select(abs(Literal(null))),
(1 to 100).map(_ => Seq(null))
)
}
Expand All @@ -330,7 +329,7 @@ class DslQuerySuite extends QueryTest {
)

checkAnswer(
testData.select(upper(Literal(null, NullType))),
testData.select(upper(Literal(null))),
(1 to 100).map(n => Seq(null))
)
}
Expand All @@ -347,7 +346,7 @@ class DslQuerySuite extends QueryTest {
)

checkAnswer(
testData.select(lower(Literal(null, NullType))),
testData.select(lower(Literal(null))),
(1 to 100).map(n => Seq(null))
)
}
Expand Down

0 comments on commit 07700cf

Please sign in to comment.