-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix assertion error when executing row query with filter #133704
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
Fix assertion error when executing row query with filter #133704
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
// We won't run this check with no filter and no valid indices since this may lead to false positive - missing index report | ||
// when the resolution result is not valid for a different reason. | ||
EsqlCCSUtils.updateExecutionInfoWithClustersWithNoMatchingIndices(executionInfo, result.indices, requestFilter != null); | ||
if (executionInfo.clusterInfo.isEmpty() == false) { |
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.
Could also be if(executionInfo.isCrossClusterSearch())
because there's really no point of doing this if it's not cross-cluster - the only way it could do anything is if the local indices are all filtered and this case is already handled by the verifier. Which would implicitly include your case also.
) (cherry picked from commit 12fd34d)
) (cherry picked from commit 12fd34d)
…tic#133704) (elastic#133792) * Fix assertion error when executing row query with filter (elastic#133704) (cherry picked from commit 12fd34d) * fix compilation
…tic#133704) (elastic#133792) * Fix assertion error when executing row query with filter (elastic#133704) (cherry picked from commit 12fd34d) * fix compilation
Running a row query with any filter fails with the following assertion error:
Filter is not really applicable for the row query, but regardless it should not tip assertion.
This change fixes that.