FROM kibana_sample_data_logs
| EVAL timestamp=DATE_TRUNC(5 minute, @timestamp) | INLINESTATS results = count(*) by timestamp | keep results, timestamp
Plan [EsqlProject[[results{r}#16680, timestamp{r}#16678]]] optimized incorrectly due to missing references [results{r}#16680]
Description
#109583 will add support for INLINESTATS, a command to run a STATS and then merge the results into the stream of results. This issue tracks follow up work:
// TODO once inlinestats supports expressions in groups we'll likely need the same sort of extraction here)Address left over comments on ESQL: Support INLINESTATS grouped on expressions #111690staleprofileFix the test labeled-> ESQL: Enable multiple INLINESTATS + remaining tests #124715brokenWhy-Ignore,byConstant-IgnoredMore shadowing tests-> ESQL: Increase test coverage for INLINESTATS #124719Fix-> ESQL: Enable multiple INLINESTATS + remaining tests #124715INLINESTATS x=MAX(a), x=MIN(a)-shadowingInternal-IgnoredFix-> ESQL: Enable multiple INLINESTATS + remaining tests #124715shadowingSelfBySelfINLINESTATSin CCS. This includes ensure that the two phase execution model interacts properly with the newly CCS execution info metadata that is gathered. ESQL: Make INLINESTATS work in CCQ #124748Once we have the above - we should look into pushing theObsolete, thePhasedstuff further into physical planning. It'd be nice to, for example, and aSubqueryExecplan that runs likePhaseddoes here. Not sure if physical or logical - but physical feels better. We're doing logical now though.Phasedinterface is gone, the whole thing is modeled viaInlineJoinnow.Test with the-> ESQL: Increase test coverage for INLINESTATS #124719BUCKETfunction. Sounds like it doesn't work at the moment.More than one INLINESTATS. see. Note that this might have to do with multiple lookups - that's tracked in ESQL: LOOKUP followups #109353-> ESQL: Enable multiple INLINESTATS + remaining tests #124715This query fails (if you remove the last pipe it workswith message-> #124715
Fix-> ESQL: Enable multiple INLINESTATS + remaining tests #124715.FROM idx | EVAL ip = to_ip(host), x = to_string(host), y = to_string(host) | INLINESTATS max(id)and re-enable the corresponding telemetry test case muted hereEvantually
Some ESQL: LOOKUP followups #109353stale