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

[GLUTEN-3620][VL] RangeExec support for fallback by user options #8913

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArnavBalyan
Copy link
Contributor

What changes were proposed in this pull request?

  • Supports enabling or disabling range exec via user options.
  • spark.gluten.sql.columnar.range can be used to control the replacement.

How was this patch tested?

  • Existing UTs already in place

@github-actions github-actions bot added the CORE works for Gluten Core label Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

#3620

Copy link

github-actions bot commented Mar 5, 2025

Run Gluten Clickhouse CI on x86

@ArnavBalyan ArnavBalyan force-pushed the arnavb/range-configurable branch from 110cf00 to c70618c Compare March 6, 2025 11:55
Copy link

github-actions bot commented Mar 6, 2025

Run Gluten Clickhouse CI on x86

@@ -1691,4 +1693,10 @@ object GlutenConfig {
.checkValue(_ > 0, s"must be positive.")
.createWithDefault(10)

val COLUMNAR_RANGE_ENABLED =
buildConf("spark.gluten.sql.columnar.range")
Copy link
Contributor

Choose a reason for hiding this comment

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

what the difference between spark.gluten.sql.columnar.expand and here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

spark.gluten.sql.columnar.expand belongs to the expand operator. spark.gluten.sql.columnar.range is meant for the newly added columnar range

@@ -186,6 +186,7 @@ object Validators {
if !(glutenConf.enableColumnarSample && BackendsApiManager.getSettings
.supportSampleExec()) =>
fail(p)
case p: ExpandExec if !glutenConf.enableColumnarRange => fail(p)
Copy link
Contributor

Choose a reason for hiding this comment

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

seems this same as gluten-substrait/src/main/scala/org/apache/gluten/extension/columnar/validator/Validators.scala#line 154

Copy link
Contributor

Choose a reason for hiding this comment

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

you are trying to match ExpandExec again with glutenConf.enableColumnarRange, why

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah that's a good catch, it seems the ExpandExec got copied, updated it thanks!

@ArnavBalyan ArnavBalyan force-pushed the arnavb/range-configurable branch from c70618c to f9c55c6 Compare March 7, 2025 10:51
Copy link

github-actions bot commented Mar 7, 2025

Run Gluten Clickhouse CI on x86

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.

2 participants