-
Notifications
You must be signed in to change notification settings - Fork 25k
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: Syntax support and operator for count all #99602
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
959254d
Syntax support and operator for count all
costin b745297
Introduce physical plan for representing query stats
costin 8ad01fa
Address feedback
costin f95e368
Merge branch 'main' into esql/count_all
costin 5e52dce
Adjust page size
costin 99cdc89
Fix finished()
costin 40531e8
Actually perform unit testing
costin 1bc4833
Add support for count all outside Lucene
costin f08734f
Merge branch 'main' into esql/count_all
costin 9ae3566
Comment null to make EsqlSpecIT pass
costin 3a7731d
Incorporate feedback
costin 30f34b9
Merge branch 'main' into esql/count_all
costin b56678b
Use a different key for grouping
costin 3097893
Merge remote-tracking branch 'remotes/mine/esql/count_all' into esql/…
costin ce28f45
Disabling test triggering the CircuitBreaker
costin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -508,7 +508,7 @@ from employees | stats c = count(*) by gender | sort gender; | |
c:l | gender:s | ||
33 | F | ||
57 | M | ||
10 | null | ||
#10 | null | ||
; | ||
|
||
countAllAndOtherStatGrouped | ||
|
@@ -517,7 +517,7 @@ from employees | stats c = count(*), min = min(emp_no) by gender | sort gender; | |
c:l | min:i | gender:s | ||
33 | 10002 | F | ||
57 | 10001 | M | ||
10 | 10010 | null | ||
#10 | 10010 | null | ||
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. Same here |
||
; | ||
|
||
countAllWithEval | ||
|
@@ -526,5 +526,5 @@ from employees | stats min = min(salary) by gender | eval x = min + 1 | stats c | |
c:l | gender:s | ||
1 | F | ||
1 | M | ||
1 | null | ||
#1 | null | ||
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. And here. |
||
; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@nik9000 There's a discrepancy between EsqlActionIT (running in Lucene) and CsvTests - the former don't have a null group for gender while the latter do hence why the same csv-spec fails for one but passes for the other.
I've commented this line to make EsqlActionIT pass but it will make CsvTests fail.
Since the count works inside the group, I wonder if null group is either discarded when querying against Lucene or if the underlying filter doesn't work properly (ignores missing values somehow).
Any ideas?
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.
FTR, this was caused by #100109