-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL: Add Verification for HAVING on TopHits with subquery (#72967)
Previously, when a TopHits aggregation function was used (FIRST/LAST, or MIN/MAX on keyword field) in a subquery and on an outer query this aggregation was filtered (with WHERE/HAVING) the Verification was passed successfully and the query was planned and translated resulting into an unsupported query DSL - since bucket selector on a TopHits agg is not currently supported, and the user received a weird error msg. Verify this case of subselects with TopHits aggs and throw an appropriate error message to the user. Closes: #71441
- Loading branch information
Showing
2 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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