-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Dependency check for binary plans #118326
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
d37eea4
c5116f1
0d0ecfb
e9a94c3
410b966
5eb9f5f
52373af
ea5f24e
967a0a7
9e77600
c20bb1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,7 +184,9 @@ public List<Attribute> output() { | |
|
||
@Override | ||
protected AttributeSet computeReferences() { | ||
return mode.isInputPartial() ? new AttributeSet(intermediateAttributes) : Aggregate.computeReferences(aggregates, groupings); | ||
return mode.isInputPartial() | ||
? new AttributeSet(intermediateAttributes) | ||
: Aggregate.computeReferences(aggregates, groupings).subtract(new AttributeSet(ordinalAttributes())); | ||
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. 👍 |
||
} | ||
|
||
/** Returns the attributes that can be loaded from ordinals -- no explicit extraction is needed */ | ||
|
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.
Simplified by excluding the ordinal attributes already in
AggregateExec.references()
, which should be more correct, as these attributes are not required for theAggregateExec
to be executed.