ESQL: Ensure non-zero row size in EstimatesRowSize#122762
ESQL: Ensure non-zero row size in EstimatesRowSize#122762dnhatn merged 9 commits intoelastic:mainfrom
EstimatesRowSize#122762Conversation
|
I think the query |
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
dnhatn
left a comment
There was a problem hiding this comment.
@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.😊 |
|
test this please |
dnhatn
left a comment
There was a problem hiding this comment.
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 <73424326+kanoshiou@users.noreply.github.com>
…123959) * ESQL: Ensure non-zero row size in `EstimatesRowSize` (#122762) Closes #121535 (cherry picked from commit 4d2cb53) * Removed getFirst() usages --------- Co-authored-by: kanoshiou <73424326+kanoshiou@users.noreply.github.com> Co-authored-by: Costin Leau <costin@users.noreply.github.com> Co-authored-by: Iván Cea Fontenla <ivancea96@outlook.com> Co-authored-by: Iván Cea Fontenla <ivan.cea@elastic.co>
…#123957) * ESQL: Ensure non-zero row size in `EstimatesRowSize` (#122762) Closes #121535 * Removed getFirest() usages --------- Co-authored-by: kanoshiou <73424326+kanoshiou@users.noreply.github.com> Co-authored-by: Costin Leau <costin@users.noreply.github.com> Co-authored-by: Iván Cea Fontenla <ivancea96@outlook.com> Co-authored-by: Iván Cea Fontenla <ivan.cea@elastic.co>
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