Skip to content

Commit

Permalink
fix test failure of DataFrameSuite.SPARK-19372
Browse files Browse the repository at this point in the history
  • Loading branch information
kiszk committed Oct 12, 2017
1 parent 36e0b76 commit c9bc395
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
.count
}

testQuietly("SPARK-19372: Filter can be executed w/o generated code due to JVM code size limit") {
test("SPARK-19372: Filter can be executed w/o generated code due to JVM code size limit") {
val N = 400
val rows = Seq(Row.fromSeq(Seq.fill(N)("string")))
val schema = StructType(Seq.tabulate(N)(i => StructField(s"_c$i", StringType)))
Expand All @@ -2081,10 +2081,8 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
}

withSQLConf(SQLConf.CODEGEN_FALLBACK.key -> "false") {
val e = intercept[SparkException] {
df.filter(filter).count()
}.getMessage
assert(e.contains("grows beyond 64 KB"))
// SPARK-21720 avoids an exception due to JVM code size limit
df.filter(filter).count()
}
}

Expand Down

0 comments on commit c9bc395

Please sign in to comment.