Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Restore one test in CometExecSuite by adding COMET_SHUFFLE_MODE config #1087

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
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
22 changes: 12 additions & 10 deletions spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,19 @@ class CometExecSuite extends CometTestBase {
}

test("ShuffleQueryStageExec could be direct child node of CometBroadcastExchangeExec") {
val table = "src"
withTable(table) {
withView("lv_noalias") {
sql(s"CREATE TABLE $table (key INT, value STRING) USING PARQUET")
sql(s"INSERT INTO $table VALUES(238, 'val_238')")
withSQLConf(CometConf.COMET_SHUFFLE_MODE.key -> "jvm") {
val table = "src"
withTable(table) {
withView("lv_noalias") {
sql(s"CREATE TABLE $table (key INT, value STRING) USING PARQUET")
sql(s"INSERT INTO $table VALUES(238, 'val_238')")

sql(
"CREATE VIEW lv_noalias AS SELECT myTab.* FROM src " +
"LATERAL VIEW explode(map('key1', 100, 'key2', 200)) myTab LIMIT 2")
val df = sql("SELECT * FROM lv_noalias a JOIN lv_noalias b ON a.key=b.key");
checkSparkAnswer(df)
sql(
"CREATE VIEW lv_noalias AS SELECT myTab.* FROM src " +
"LATERAL VIEW explode(map('key1', 100, 'key2', 200)) myTab LIMIT 2")
val df = sql("SELECT * FROM lv_noalias a JOIN lv_noalias b ON a.key=b.key");
checkSparkAnswer(df)
}
}
}
}
Expand Down
Loading