Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor change.
  • Loading branch information
sarutak committed Dec 20, 2020
commit 022d363f7abb8082fa6cec4a29370c86a9aeffc7
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ class ExplainSuite extends ExplainSuiteHelper with DisableAdaptiveExecutionSuite

test("SPARK-33853: explain codegen - check presence of subquery") {
withSQLConf(SQLConf.WHOLESTAGE_CODEGEN_ENABLED.key -> "true") {
withTable("df1") {
withTable("df") {
val df1 = spark.range(1, 100)
df1.createTempView("df1")
df1.createTempView("df")

val sqlText = "EXPLAIN CODEGEN SELECT (SELECT min(id) FROM df1)"
val sqlText = "EXPLAIN CODEGEN SELECT (SELECT min(id) FROM df)"
val expectedText = "Found 3 WholeStageCodegen subtrees."

withNormalizedExplain(sqlText) { normalizedOutput =>
Expand Down