Skip to content

Commit 6842203

Browse files
authored
[ES|QL] COMPLETION command grammar and logical plan (#126319)
1 parent fd0aaeb commit 6842203

27 files changed

+2964
-2497
lines changed

docs/changelog/126319.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 126319
2+
summary: COMPLETION command grammar and logical plan
3+
area: ES|QL
4+
type: feature
5+
issues: []

x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.tokens

Lines changed: 178 additions & 177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ processingCommand
5959
| {this.isDevVersion()}? inlinestatsCommand
6060
| {this.isDevVersion()}? lookupCommand
6161
| {this.isDevVersion()}? changePointCommand
62+
| {this.isDevVersion()}? completionCommand
6263
| {this.isDevVersion()}? insistCommand
6364
| {this.isDevVersion()}? forkCommand
6465
| {this.isDevVersion()}? rerankCommand
@@ -296,3 +297,7 @@ rrfCommand
296297
rerankCommand
297298
: DEV_RERANK queryText=constant ON fields WITH inferenceId=identifierOrParameter
298299
;
300+
301+
completionCommand
302+
: DEV_COMPLETION prompt=primaryExpression WITH inferenceId=identifierOrParameter (AS targetField=qualifiedName)?
303+
;

0 commit comments

Comments
 (0)