feat: Add session property mark_distinct_spill_enabled (#27247)#27247
Merged
duxiao1212 merged 1 commit intoprestodb:masterfrom Mar 16, 2026
Merged
feat: Add session property mark_distinct_spill_enabled (#27247)#27247duxiao1212 merged 1 commit intoprestodb:masterfrom
duxiao1212 merged 1 commit intoprestodb:masterfrom
Conversation
Contributor
Reviewer's GuideAdds a new native session property to control mark-distinct operator spilling, wires it through C++/Java configs, and extends tests/documentation mappings accordingly. Class diagram for updated C++ SessionProperties with mark distinct spill propertyclassDiagram
class SessionProperties {
+SessionProperties()
+void addSessionProperty(const char* name, const char* description, Type type, bool defaultValue, const char* configKey, const char* configValue)
<<static>> const char* kRowNumberSpillEnabled
<<static>> const char* kMarkDistinctSpillEnabled
<<static>> const char* kSpillCompressionCodec
<<static>> const char* kSpillerNumPartitionBits
}
class QueryConfig {
<<static>> const char* kRowNumberSpillEnabled
<<static>> const char* kMarkDistinctSpillEnabled
+bool rowNumberSpillEnabled()
+bool markDistinctSpillEnabled()
}
SessionProperties --> QueryConfig : uses
Class diagram for updated Java NativeWorkerSessionPropertyProvider with mark distinct spill propertyclassDiagram
class NativeWorkerSessionPropertyProvider {
+NativeWorkerSessionPropertyProvider(FeaturesConfig featuresConfig)
<<static>> String NATIVE_WRITER_SPILL_ENABLED
<<static>> String NATIVE_WRITER_FLUSH_THRESHOLD_BYTES
<<static>> String NATIVE_ROW_NUMBER_SPILL_ENABLED
<<static>> String NATIVE_MARK_DISTINCT_SPILL_ENABLED
<<static>> String NATIVE_TOPN_ROW_NUMBER_SPILL_ENABLED
<<static>> String NATIVE_SPILLER_NUM_PARTITION_BITS
<<static>> String NATIVE_DEBUG_VALIDATE_OUTPUT_FROM_OPERATORS
+PropertyMetadata booleanProperty(String name, String description, boolean defaultValue, boolean hidden)
}
class FeaturesConfig {
+boolean isNativeExecutionEnabled()
}
NativeWorkerSessionPropertyProvider --> FeaturesConfig : reads nativeExecution
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="presto-docs/src/main/sphinx/presto_cpp/properties-session.rst" line_range="202" />
<code_context>
+* **Type:** ``boolean``
+* **Default value:** ``false``
+
+Native Execution only. Enable mark distinct spilling on native engine.
+
``native_simplified_expression_evaluation_enabled``
</code_context>
<issue_to_address>
**nitpick (typo):** Consider adding the article "the" in "on the native engine" for grammatical correctness.
You could rephrase the line to: “Native Execution only. Enable mark distinct spilling on the native engine.”
```suggestion
Native Execution only. Enable mark distinct spilling on the native engine.
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
steveburnett
approved these changes
Mar 3, 2026
Contributor
steveburnett
left a comment
There was a problem hiding this comment.
LGTM! (docs)
Pull branch, local doc build, looks good. Thanks!
xiaoxmeng
approved these changes
Mar 3, 2026
7cc0f39 to
4a0e163
Compare
duxiao1212
added a commit
to duxiao1212/presto
that referenced
this pull request
Mar 9, 2026
Summary: per title Differential Revision: D94965529
duxiao1212
added a commit
to duxiao1212/presto
that referenced
this pull request
Mar 9, 2026
Summary: Pull Request resolved: prestodb#27247 per title Differential Revision: D94965529
edacf24 to
9f42526
Compare
duxiao1212
added a commit
to duxiao1212/presto
that referenced
this pull request
Mar 12, 2026
Summary: per title Differential Revision: D94965529
duxiao1212
added a commit
to duxiao1212/presto
that referenced
this pull request
Mar 12, 2026
Summary: Pull Request resolved: prestodb#27247 per title Differential Revision: D94965529
9f42526 to
a8b823a
Compare
Contributor
|
Please add a release note following the Release Note Guidelines to pass the not required but failing CI check. Look at the failures for the failing CI checks and see what you can do to resolve them. |
Summary: per title Differential Revision: D94965529
a8b823a to
c8a8d16
Compare
feilong-liu
approved these changes
Mar 16, 2026
This was referenced Mar 31, 2026
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
per title
Differential Revision: D94965529