Skip to content

Commit

Permalink
Fillnull syntax improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-soszynski-eliatra committed Oct 1, 2024
1 parent 8800ab8 commit e26d0c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,16 @@ lookupPair
;

fillnullCommand
: FILLNULL ( fillNullWithTheSameValue )
| (fillNullWithFieldVariousValues)
: FILLNULL (fillNullWithTheSameValue
| fillNullWithFieldVariousValues)
;

fillNullWithTheSameValue
: VALUE EQUAL nullReplacement nullableField*
: VALUE EQUAL nullReplacement nullableField (COMMA nullableField)*
;

fillNullWithFieldVariousValues
: nullableField EQUAL nullReplacement (COMMA nullableField EQUAL nullReplacement)*
: FIELDS nullableField EQUAL nullReplacement (COMMA nullableField EQUAL nullReplacement)*
;


Expand Down

0 comments on commit e26d0c3

Please sign in to comment.