From b67a40f310874c85a5ae9e179432630af66a2548 Mon Sep 17 00:00:00 2001 From: Lukasz Soszynski Date: Thu, 12 Sep 2024 16:21:15 +0200 Subject: [PATCH] Antler syntax extensions related ot signum function. Signed-off-by: Lukasz Soszynski --- ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4 | 1 + ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 | 1 + 2 files changed, 2 insertions(+) diff --git a/ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4 b/ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4 index 60e1e9922..7af3e2109 100644 --- a/ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4 +++ b/ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4 @@ -259,6 +259,7 @@ POWER: 'POWER'; RAND: 'RAND'; ROUND: 'ROUND'; SIGN: 'SIGN'; +SIGNUM: 'SIGNUM'; SQRT: 'SQRT'; TRUNCATE: 'TRUNCATE'; diff --git a/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 b/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 index 30b57d5da..f5c3b2ac4 100644 --- a/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 +++ b/ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4 @@ -558,6 +558,7 @@ mathematicalFunctionName | RAND | ROUND | SIGN + | SIGNUM | SQRT | TRUNCATE | trigonometricFunctionName