Skip to content

Commit

Permalink
Address comments by removing the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Sep 13, 2024
1 parent 15ab1b7 commit de454e5
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,4 @@ class ExecuteImmediateEndToEndSuite extends QueryTest with SharedSparkSession {
spark.sql("DROP TEMPORARY VARIABLE IF EXISTS parm;")
}
}

// TODO(SPARK-49622) Re-enable `EXEC IMMEDIATE STACK OVERFLOW` test case
ignore("EXEC IMMEDIATE STACK OVERFLOW") {
try {
spark.sql("DECLARE parm = 1;")
val query = (1 to 20000).map(x => "SELECT 1 as a").mkString(" UNION ALL ")
Seq(
s"EXECUTE IMMEDIATE '$query'",
s"EXECUTE IMMEDIATE '$query' INTO parm").foreach { q =>
val e = intercept[ParseException] {
spark.sql(q)
}

checkError(
exception = e,
condition = "FAILED_TO_PARSE_TOO_COMPLEX",
parameters = Map(),
context = ExpectedContext(
query,
start = 0,
stop = query.length - 1)
)
}
} finally {
spark.sql("DROP TEMPORARY VARIABLE IF EXISTS parm;")
}
}
}

0 comments on commit de454e5

Please sign in to comment.