-
Notifications
You must be signed in to change notification settings - Fork 582
[GLUTEN-11383][VL] Allow bloom filter pushdown in hash probe #11392
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,11 @@ class VeloxConfig(conf: SQLConf) extends GlutenConfig(conf) { | |
| def orcUseColumnNames: Boolean = getConf(ORC_USE_COLUMN_NAMES) | ||
|
|
||
| def parquetUseColumnNames: Boolean = getConf(PARQUET_USE_COLUMN_NAMES) | ||
|
|
||
| def hashProbeBloomFilterPushdownMaxSize: Long = getConf(HASH_PROBE_BLOOM_FILTER_PUSHDOWN_MAX_SIZE) | ||
|
|
||
| def hashProbeDynamicFilterPushdownEnabled: Boolean = | ||
| getConf(HASH_PROBE_DYNAMIC_FILTER_PUSHDOWN_ENABLED) | ||
| } | ||
|
|
||
| object VeloxConfig extends ConfigRegistry { | ||
|
|
@@ -447,6 +452,22 @@ object VeloxConfig extends ConfigRegistry { | |
| .longConf | ||
| .createWithDefault(4194304L) | ||
|
|
||
| val HASH_PROBE_BLOOM_FILTER_PUSHDOWN_MAX_SIZE = | ||
| buildConf("spark.gluten.sql.columnar.backend.velox.hashProbe.bloomFilterPushdown.maxSize") | ||
| .doc("The maximum byte size of Bloom filter that can be generated from hash probe. When " + | ||
| "set to 0, no Bloom filter will be generated. To achieve optimal performance, this should" + | ||
| " not be too larger than the CPU cache size on the host.") | ||
| .bytesConf(ByteUnit.BYTE) | ||
| .createWithDefault(0) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to disable the bloom filter pushdown by default?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Velox has the default set to true & 0: |
||
|
|
||
| val HASH_PROBE_DYNAMIC_FILTER_PUSHDOWN_ENABLED = | ||
| buildConf("spark.gluten.sql.columnar.backend.velox.hashProbe.dynamicFilterPushdown.enabled") | ||
| .doc( | ||
| "Whether hash probe can generate any dynamic filter (including Bloom filter) and push" + | ||
| " down to upstream operators.") | ||
| .booleanConf | ||
| .createWithDefault(true) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
|
|
||
| val COLUMNAR_VELOX_FILE_HANDLE_CACHE_ENABLED = | ||
| buildStaticConf("spark.gluten.sql.columnar.backend.velox.fileHandleCacheEnabled") | ||
| .doc( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration type and default value are incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the variable name and the configuration don't match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed