From e3ab029bcb35005b40b38b2a1077fb8806e88dab Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Tue, 27 Jan 2026 22:45:36 +0000 Subject: [PATCH 1/2] Add inputlookup as another form of search sources Signed-off-by: Simeon Widdis --- ppl/src/main/antlr/OpenSearchPPLLexer.g4 | 1 + ppl/src/main/antlr/OpenSearchPPLParser.g4 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ppl/src/main/antlr/OpenSearchPPLLexer.g4 b/ppl/src/main/antlr/OpenSearchPPLLexer.g4 index c16d15c30b8..e51ec177e4b 100644 --- a/ppl/src/main/antlr/OpenSearchPPLLexer.g4 +++ b/ppl/src/main/antlr/OpenSearchPPLLexer.g4 @@ -215,6 +215,7 @@ YEAR_MONTH: 'YEAR_MONTH'; // DATASET TYPES LOOKUP: 'LOOKUP'; +INPUTLOOKUP: 'INPUTLOOKUP'; // CONVERTED DATA TYPES INT: 'INT'; diff --git a/ppl/src/main/antlr/OpenSearchPPLParser.g4 b/ppl/src/main/antlr/OpenSearchPPLParser.g4 index 5ad1c38b01b..f3819eafc53 100644 --- a/ppl/src/main/antlr/OpenSearchPPLParser.g4 +++ b/ppl/src/main/antlr/OpenSearchPPLParser.g4 @@ -623,10 +623,13 @@ addcoltotalsOption fromClause : SOURCE EQUAL tableOrSubqueryClause | INDEX EQUAL tableOrSubqueryClause + | INPUTLOOKUP tableOrSubqueryClause | SOURCE EQUAL tableFunction | INDEX EQUAL tableFunction + | INPUTLOOKUP tableFunction | SOURCE EQUAL dynamicSourceClause | INDEX EQUAL dynamicSourceClause + | INPUTLOOKUP dynamicSourceClause ; tableOrSubqueryClause From fed144151f86897879e404679573600a3c01698c Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Tue, 27 Jan 2026 23:39:30 +0000 Subject: [PATCH 2/2] Don't use inputlookup for dynamic source clauses Signed-off-by: Simeon Widdis --- ppl/src/main/antlr/OpenSearchPPLParser.g4 | 1 - 1 file changed, 1 deletion(-) diff --git a/ppl/src/main/antlr/OpenSearchPPLParser.g4 b/ppl/src/main/antlr/OpenSearchPPLParser.g4 index f3819eafc53..f5172a7a2e6 100644 --- a/ppl/src/main/antlr/OpenSearchPPLParser.g4 +++ b/ppl/src/main/antlr/OpenSearchPPLParser.g4 @@ -629,7 +629,6 @@ fromClause | INPUTLOOKUP tableFunction | SOURCE EQUAL dynamicSourceClause | INDEX EQUAL dynamicSourceClause - | INPUTLOOKUP dynamicSourceClause ; tableOrSubqueryClause