Skip to content

Commit

Permalink
Add start == end test case and remove redundant SparkContext.rage
Browse files Browse the repository at this point in the history
… test case.
  • Loading branch information
dongjoon-hyun committed Jun 12, 2017
1 parent 89dd7ad commit 46f60f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ class DataFrameRangeSuite extends QueryTest with SharedSQLContext with Eventuall
val end = java.lang.Long.MIN_VALUE + 2
Seq("false", "true").foreach { value =>
withSQLConf(SQLConf.WHOLESTAGE_CODEGEN_ENABLED.key -> value) {
assert(spark.sparkContext.range(start, end, 1).collect.length == 0)
assert(spark.range(start, end, 1).collect.length == 0)
assert(spark.range(start, start, 1).collect.length == 0)
}
}
}
Expand Down

0 comments on commit 46f60f0

Please sign in to comment.