-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Ensure non-zero row size in EstimatesRowSize
#122762
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
ESQL: Ensure non-zero row size in EstimatesRowSize
#122762
Conversation
|
I think the query |
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
dnhatn
left a comment
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.
@kanoshiou Thank you for looking into it. I think we should not remove this assertion, but ensure that at least one byte is returned in EstimatesRowSize#consumeAllFields. Can you also add the query ROW a=null | SORT a to EsqlActionIT?
|
Thank you for reviewing, @dnhatn! The assertion has been restored, and I've added the test you specified. Please review when you have the time.😊 |
EstimatesRowSize
nik9000
left a comment
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.
Looks good to me.
|
test this please |
dnhatn
left a comment
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.
Great investigation. Thanks @kanoshiou!
|
@kanoshiou There is another issue with FragmentExec. Would you mind moving the new logic to CI failure: https://gradle-enterprise.elastic.co/s/4p6fd4lzayp66 |
|
And this query too |
Head branch was pushed to by a user without write access
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/AggregateExec.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/TopNExec.java
Outdated
Show resolved
Hide resolved
|
Thank you for your review, @dnhatn! But I have no idea what's wrong with |
|
test this please |
|
@kanoshiou Thanks for your contribution. |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Closes elastic#121535 (cherry picked from commit 4d2cb53)
Closes #121535 Co-authored-by: kanoshiou <[email protected]>
…123959) * ESQL: Ensure non-zero row size in `EstimatesRowSize` (#122762) Closes #121535 (cherry picked from commit 4d2cb53) * Removed getFirst() usages --------- Co-authored-by: kanoshiou <[email protected]> Co-authored-by: Costin Leau <[email protected]> Co-authored-by: Iván Cea Fontenla <[email protected]> Co-authored-by: Iván Cea Fontenla <[email protected]>
…#123957) * ESQL: Ensure non-zero row size in `EstimatesRowSize` (#122762) Closes #121535 * Removed getFirest() usages --------- Co-authored-by: kanoshiou <[email protected]> Co-authored-by: Costin Leau <[email protected]> Co-authored-by: Iván Cea Fontenla <[email protected]> Co-authored-by: Iván Cea Fontenla <[email protected]>
Remove the assertion of
rowSizeinplanTopN, because inLocalExecutionPlannerContext.pageSize(Integer), there is already a check forestimatedRowSizeto ensure it is not null and not zero.Closes #121535