You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "zml1206 (via GitHub)" <gi...@apache.org> on 2026/07/08 06:26:02 UTC
[PR] [VL] Fix GlutenSparkSessionExtensionSuite in Spark 4.x [gluten]
zml1206 opened a new pull request, #12475:
URL: https://github.com/apache/gluten/pull/12475
Enable GlutenSparkSessionExtensionSuite for Spark 4.0/4.1 Velox UTs.
The suite should not mix in GlutenTestsTrait, because that trait initializes a shared Gluten Spark session in beforeAll. Spark’s upstream SparkSessionExtensionSuite creates sessions with custom extensions per test, and reusing an existing session may cause injected extensions such as analyzer rules to be ignored.
This patch changes Spark 4.0/4.1 GlutenSparkSessionExtensionSuite to use GlutenTestsCommonTrait, matching the suite’s need for Gluten test filtering without creating a shared session, then enables the suite in Velox test settings.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [CORE] Limit SparkSessionExtension suite to Gluten test [gluten]
Posted by "zml1206 (via GitHub)" <gi...@apache.org>.
zml1206 commented on code in PR #12475:
URL: https://github.com/apache/gluten/pull/12475#discussion_r3548497322
##########
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala:
##########
@@ -2073,6 +2074,7 @@ class ClickHouseTestSettings extends BackendTestSettings {
.excludeCH("sorting on YearMonthIntervalType(0,1) with nullable=false, sortOrder=List('a DESC NULLS LAST)")
.excludeCH("sorting on YearMonthIntervalType(0,1) with nullable=false, sortOrder=List('a DESC NULLS FIRST)")
enableSuite[GlutenSparkSessionExtensionSuite]
+ .includeGlutenTest("customColumnarOp")
Review Comment:
Updated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [CORE] Limit SparkSessionExtension suite to Gluten test [gluten]
Posted by "zml1206 (via GitHub)" <gi...@apache.org>.
zml1206 merged PR #12475:
URL: https://github.com/apache/gluten/pull/12475
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Fix GlutenSparkSessionExtensionSuite in Spark 4.x [gluten]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12475:
URL: https://github.com/apache/gluten/pull/12475#discussion_r3548479915
##########
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala:
##########
@@ -2073,6 +2074,7 @@ class ClickHouseTestSettings extends BackendTestSettings {
.excludeCH("sorting on YearMonthIntervalType(0,1) with nullable=false, sortOrder=List('a DESC NULLS LAST)")
.excludeCH("sorting on YearMonthIntervalType(0,1) with nullable=false, sortOrder=List('a DESC NULLS FIRST)")
enableSuite[GlutenSparkSessionExtensionSuite]
+ .includeGlutenTest("customColumnarOp")
Review Comment:
PR title/description scope is Spark 4.x Velox ("[VL]" and mentions enabling suite in Velox UTs), but this change also updates ClickHouse test settings (and other Spark-version settings) by filtering GlutenSparkSessionExtensionSuite to only run the "customColumnarOp" test. Please confirm this broader scope is intentional; otherwise consider limiting the changes to Velox-only files or updating the PR title/description to reflect ClickHouse + Spark 3.3–4.1 coverage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Fix GlutenSparkSessionExtensionSuite in Spark 4.x [gluten]
Posted by "zml1206 (via GitHub)" <gi...@apache.org>.
zml1206 commented on PR #12475:
URL: https://github.com/apache/gluten/pull/12475#issuecomment-4920976722
> @zml1206, thanks for the fix. One comment, which might be slightly beyond the scope of this PR. Please check if it makes sense.
>
> I noticed this suite runs all the parent SparkSessionExtensionSuite tests without the Gluten plugin or any Gluten-specific configuration. Those are Spark's own tests and can be covered on the Spark side, so there's no need to run them on Gluten.
>
> Could we use includeGlutenTest("customColumnarOp") to enable only this Gluten test, where the Gluten plugin and related config are actually applied to the Spark session? This test was introduced by #4165 and isn't intended to cover Spark's own tests the way other suites do.
>
> Alternatively, if the test doesn't really depend on SparkSessionExtensionSuite, could we move it to a new suite under gluten-ut/test?
Thanks for the suggestion. It makes sense to avoid running the parent SparkSessionExtensionSuite tests here since they are Spark-side coverage and do not require Gluten-specific configuration.
I'll update the suite settings to enable only the Gluten-specific test with includeGlutenTest("customColumnarOp"). I prefer this over moving the test for now because the test still reuses SparkSessionExtensionSuite helpers, and the scoped include keeps the PR minimal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Fix GlutenSparkSessionExtensionSuite in Spark 4.x [gluten]
Posted by "philo-he (via GitHub)" <gi...@apache.org>.
philo-he commented on PR #12475:
URL: https://github.com/apache/gluten/pull/12475#issuecomment-4920724358
@zml1206, thanks for the fix. One comment, which might be slightly beyond the scope of this PR. Please check if it makes sense.
I noticed this suite runs all the parent SparkSessionExtensionSuite tests without the Gluten plugin or any Gluten-specific configuration. Those are Spark's own tests and can be covered on the Spark side, so there's no need to run them on Gluten.
Could we use includeGlutenTest("customColumnarOp") to enable only this Gluten test, where the Gluten plugin and related config are actually applied to the Spark session? This test was introduced by https://github.com/apache/gluten/pull/4165 and isn't intended to cover Spark's own tests the way other suites do.
Alternatively, if the test doesn't really depend on SparkSessionExtensionSuite, could we move it to a new suite under gluten-ut/test?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Fix GlutenSparkSessionExtensionSuite in Spark 4.x [gluten]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12475:
URL: https://github.com/apache/gluten/pull/12475#issuecomment-4920973948
Run Gluten Clickhouse CI on x86
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org