-
Notifications
You must be signed in to change notification settings - Fork 25.2k
ESQL: Consider inlinestats when having field_caps check for field names #127564
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
base: main
Are you sure you want to change the base?
Conversation
…field_names_for_inlinestats_fix
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @astefan, I've created a changelog YAML for you. |
@@ -360,14 +362,14 @@ FROM airports | |||
| LIMIT 3 | |||
; | |||
|
|||
abbrev:keyword | city:keyword | region:text | "COUNT(*)":long |
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.
Unrelated to this PR, but to previous work.
@@ -127,7 +127,7 @@ protected void shouldSkipTest(String testName) throws IOException { | |||
assumeFalse("INLINESTATS not yet supported in CCS", testCase.requiredCapabilities.contains(INLINESTATS.capabilityName())); | |||
assumeFalse("INLINESTATS not yet supported in CCS", testCase.requiredCapabilities.contains(INLINESTATS_V2.capabilityName())); | |||
assumeFalse("INLINESTATS not yet supported in CCS", testCase.requiredCapabilities.contains(JOIN_PLANNING_V1.capabilityName())); | |||
assumeFalse("INLINESTATS not yet supported in CCS", testCase.requiredCapabilities.contains(INLINESTATS_V5.capabilityName())); | |||
assumeFalse("INLINESTATS not yet supported in CCS", testCase.requiredCapabilities.contains(INLINESTATS_V7.capabilityName())); |
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.
V7 because I am trying to work on multiple separate issues. V6 should come from #127383
Hi @astefan, I've updated the changelog YAML for you. |
…astefan/elasticsearch into field_names_for_inlinestats_fix
…field_names_for_inlinestats_fix
Hi @astefan, I've updated the changelog YAML for you. |
…astefan/elasticsearch into field_names_for_inlinestats_fix
The aggregate inside an inlinestats is "interfering" with the way field names are collected for field_caps requests. This made simple queries like
from test | inlinestats max(whatever) by group
to not return all fields fromtest
, but to limit the resulting columns towhatever
andgroup
.inlinestats
' purpose is to add columns to an already existent set of columns, which implies that this command has to be "transparent" to any wider collection of field names.Fixes #127236