Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/126319.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 126319
summary: COMPLETION command grammar and logical plan
area: ES|QL
type: feature
issues: []
355 changes: 178 additions & 177 deletions x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ processingCommand
| {this.isDevVersion()}? inlinestatsCommand
| {this.isDevVersion()}? lookupCommand
| {this.isDevVersion()}? changePointCommand
| {this.isDevVersion()}? completionCommand
| {this.isDevVersion()}? insistCommand
| {this.isDevVersion()}? forkCommand
| {this.isDevVersion()}? rerankCommand
Expand Down Expand Up @@ -293,3 +294,7 @@ rrfCommand
rerankCommand
: DEV_RERANK queryText=constant ON fields WITH inferenceId=identifierOrParameter
;

completionCommand
: DEV_COMPLETION prompt=primaryExpression WITH inferenceId=identifierOrParameter (AS targetField=qualifiedName)?
;
Loading
Loading