chore(native): Cleanup expression optimizer API#26925
Merged
pramodsatya merged 1 commit intoprestodb:masterfrom Jan 9, 2026
Merged
chore(native): Cleanup expression optimizer API#26925pramodsatya merged 1 commit intoprestodb:masterfrom
pramodsatya merged 1 commit intoprestodb:masterfrom
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves the unused timezone parameter from the expression optimizer API and its call sites, updating the documentation/comments accordingly while leaving behavior unchanged. Class diagram for updated ExpressionOptimizer APIclassDiagram
class ExpressionOptimizerNamespace {
<<namespace>>
+optimizeExpressions(input : vector~RowExpressionPtr~, optimizerLevel : OptimizerLevel&, queryCtx : velox::core::QueryCtx*, pool : velox::memory::MemoryPool*) vector~protocol::RowExpressionOptimizationResult~
}
class PrestoServer {
+getOptimizedExpressions(expressions : vector~RowExpressionPtr~, timezone : string, optimizerLevel : OptimizerLevel, queryCtx : shared_ptr~velox::core::QueryCtx~, pool : velox::memory::MemoryPool*) json::array_t
}
PrestoServer ..> ExpressionOptimizerNamespace : calls optimizeExpressions
class OptimizerLevel {
<<enum>>
OPTIMIZED
EVALUATED
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
Author
|
@aditi-pandit, @amitkdutta, could you please help review this API cleanup? |
aditi-pandit
approved these changes
Jan 9, 2026
Contributor
aditi-pandit
left a comment
There was a problem hiding this comment.
Thanks @pramodsatya
tdcmeehan
pushed a commit
to rdtr/presto
that referenced
this pull request
Jan 14, 2026
## Description Removes unused parameter `timezone` from `ExprOptimizer::optimizeExpressions()` API. ## Motivation and Context This parameter was used in the initial implementation, and is no longer required since the `queryCtx` contains this info. ## Impact NA ## Test Plan Verified with e2e tests. ``` == NO RELEASE NOTE == ```
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.
Description
Removes unused parameter
timezonefromExprOptimizer::optimizeExpressions()API.Motivation and Context
This parameter was used in the initial implementation, and is no longer required since the
queryCtxcontains this info.Impact
NA
Test Plan
Verified with e2e tests.