Skip to content

[GLUTEN-12897][VL][TEST] Run seven UDF and two ANSI SQL query test files on Spark 3.5/4.0/4.1 - #12890

Merged
jackylee-ch merged 3 commits into
apache:mainfrom
LuciferYang:spark33-drop-p08-sql-query-files
Aug 31, 2026
Merged

[GLUTEN-12897][VL][TEST] Run seven UDF and two ANSI SQL query test files on Spark 3.5/4.0/4.1#12890
jackylee-ch merged 3 commits into
apache:mainfrom
LuciferYang:spark33-drop-p08-sql-query-files

Conversation

@LuciferYang

@LuciferYang LuciferYang commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Nine .sql files run on gluten-ut/spark34 but on none of spark35, spark40, spark41. This adds them where they are missing and where the file still exists.

module added
spark35 all nine
spark40, spark41 the seven udf/ files

The two ansi/ files are spark35 only. Spark 4.0 removed the ansi/ input directory in b6265286eca ([SPARK-50313][SQL][TESTS] Enable ANSI in SQL *SQLQueryTestSuite by default): with ANSI on by default those files moved to the top level and a nonansi/ directory appeared for the other variants. So ansi/datetime-special.sql and ansi/parse-schema-string.sql do not exist on 4.0 and 4.1, and both modules' lists already cover the same content under the 4.0 names, datetime-special.sql and parse-schema-string.sql plus the two nonansi/ entries.

Evidence

GlutenSQLQueryTestSuite carries @ExtendedSQLTest, so it runs in the spark-test-sparkNN-slow (extended) jobs, not in the numbered groups, which exclude that tag. From those jobs' surefire reports on this PR:

job suite tests failures the added files
spark35-slow (extended) 316 0 all nine ran, Scala UDF and plain variants passed
spark40-slow (extended) 705 0 seven udf/ files ran, Scala UDF passed
spark41-slow (extended) 763 0 seven udf/ files ran, Scala UDF passed

The Regular Python UDF and Scalar Pandas UDF variants report as skipped because the CI image has no pyspark, pandas or pyarrow, and the _analyzer_test variants on 4.0/4.1 are gated separately. Both predate this change.

An earlier revision of this PR also added the two ansi/ entries to spark40 and spark41; the run above is what showed they produce no test there, which is how the 4.0 directory change came to light.

How this PR changed shape

It opened claiming these nine would stop running when gluten-ut/spark33 is removed under #12807, and it also deleted two entries from spark34's list as unreachable. Both were wrong, and the reason is #12897: spark34 matches the supported list with contains while 3.5+ match with ==. So spark34's short entries (count.sql, cross-join.sql, having.sql, inner-join.sql, join-empty-relation.sql, natural-join.sql, outer-join.sql, datetime-special.sql, parse-schema-string.sql) already enable these files there, and "udf-union.sql" was not a dead entry either.

I ran the suite against Spark 3.4.4 with Velox twice, once with the nine entries added to spark34 and once without: both give 222 tests, 222 succeeded, 0 failed, 84 ignored, with the nine present either way. The spark34 half was a no-op, so it is gone and the two deletions are reverted. What remains is an extension rather than a migration, and removing gluten-ut/spark33 does not depend on it.

Related: #12897, #12863, #12807.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude claude-opus-5

@github-actions github-actions Bot added the CORE works for Gluten Core label Aug 25, 2026
@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Velox SQL query test allowlists for Spark 3.4, 3.5, 4.0, and 4.1 so that nine previously Spark-3.3-only .sql query test files continue to run after gluten-ut/spark33 is removed.

Changes:

  • Add nine previously Spark-3.3-only SQL query tests to SUPPORTED_SQL_QUERY_LIST in the Spark 3.4/3.5/4.0/4.1 Velox settings.
  • Remove two Spark 3.4 entries (udf-union.sql, udf-window.sql) from the supported list.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
gluten-ut/spark34/src/test/scala/org/apache/gluten/utils/velox/VeloxSQLQueryTestSettings.scala Adds the nine missing SQL tests to the Spark 3.4 Velox supported list; also removes two UDF entries.
gluten-ut/spark35/src/test/scala/org/apache/gluten/utils/velox/VeloxSQLQueryTestSettings.scala Adds the nine missing SQL tests to the Spark 3.5 Velox supported list.
gluten-ut/spark40/src/test/scala/org/apache/gluten/utils/velox/VeloxSQLQueryTestSettings.scala Adds the nine missing SQL tests to the Spark 4.0 Velox supported list.
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxSQLQueryTestSettings.scala Adds the nine missing SQL tests to the Spark 4.1 Velox supported list.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 203 to 206
"union.sql",
"using-join.sql",
"window.sql",
"udf-union.sql",
"udf-window.sql",
"ansi/cast.sql",
Copilot AI review requested due to automatic review settings August 25, 2026 12:51
@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@LuciferYang LuciferYang changed the title [GLUTEN-12863][VL][TEST] Run the nine Spark 3.3-only SQL query test files on 3.4+ [GLUTEN-12897][VL][TEST] Run nine SQL query test files on Spark 3.5/4.0/4.1 as well Aug 25, 2026
@LuciferYang
LuciferYang marked this pull request as draft August 25, 2026 12:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment on lines +212 to +213
"ansi/datetime-special.sql",
"ansi/parse-schema-string.sql",
@LuciferYang
LuciferYang marked this pull request as ready for review August 25, 2026 14:14
@LuciferYang
LuciferYang marked this pull request as draft August 25, 2026 14:14
@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@LuciferYang LuciferYang changed the title [GLUTEN-12897][VL][TEST] Run nine SQL query test files on Spark 3.5/4.0/4.1 as well [GLUTEN-12897][VL][TEST] Run seven UDF and two ANSI SQL query test files on Spark 3.5/4.0/4.1 Aug 26, 2026
@LuciferYang
LuciferYang marked this pull request as ready for review August 26, 2026 04:58
Copilot AI review requested due to automatic review settings August 26, 2026 04:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@LuciferYang

Copy link
Copy Markdown
Contributor Author

cc @jackylee-ch this one is ready to go

@jackylee-ch jackylee-ch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jackylee-ch
jackylee-ch merged commit 63860ca into apache:main Aug 31, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants