[ES|QL] Support by into the Limit command#258008
Conversation
| ); | ||
| const commaSuggestion = withAutoSuggest({ ...commaCompleteItem, text: ', ' }); | ||
|
|
||
| if (ENDS_WITH_WHITESPACE_REGEX.test(innerText)) { |
There was a problem hiding this comment.
removes the space between the previous word and the paragraph. It's the same as what Stats By does
src/platform/packages/shared/kbn-esql-language/src/commands/registry/limit/validate.ts
Outdated
Show resolved
Hide resolved
|
|
|
I’m not sure whether I also need to implement |
src/platform/packages/shared/kbn-esql-language/src/commands/registry/limit/autocomplete.ts
Outdated
Show resolved
Hide resolved
|
Pinging @elastic/kibana-esql (Team:ESQL) |
| examples: ['… | LIMIT 100', '… | LIMIT 1'], | ||
| preview: true, | ||
| // TODO: Remove this temporary autocomplete gate once LIMIT BY is available outside tests. | ||
| limitByHidden: process.env.NODE_ENV === 'test' ? false : true, |
There was a problem hiding this comment.
set this flag to false to try locally the PR
…ally, or add an exception to src/dev/yarn_deduplicate/index.ts and then commit the changes and push to your branch
stratoula
left a comment
There was a problem hiding this comment.
Looks awesome, jsut a small change, do not suggest the grouping options for now as they are not going to be supported for 9.4
| }, | ||
| ], | ||
| locationsAvailable: [Location.STATS, Location.STATS_BY], | ||
| locationsAvailable: [Location.STATS, Location.STATS_BY, Location.LIMIT_BY], |
There was a problem hiding this comment.
Here we shuld not have the locations right? Because the grouping functions are not supported in tech preview
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
cc @bartoval |
## Summary https://github.com/user-attachments/assets/a2fc7656-935d-4b62-88cc-05418d321b6b - The BY part of the LIMIT command is currently flagged as development-only, so it needs to be hidden - A mysterious voice says that LIMIT BY cannot come before SORT, so we added a validation and temporarily do not suggest it elastic/elasticsearch#144069 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Stratou <efstratia.kalafateli@elastic.co>
Summary
LIMIT_BY.mp4