Skip to content

Commit

Permalink
Use a better label name for the isnull functional operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrienk committed Mar 13, 2017
1 parent 5b789db commit 41adadd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ aggregate : 'aggregate' ;

booleanExpression //Evaluation order of the operators
: '(' booleanExpression ')' # BooleanPrecedence // I
| func=ISNULL_FUNC '(' booleanParam ')' # BooleanFunction // II All functional operators
| ISNULL_FUNC '(' booleanParam ')' # BooleanIsNullFunction // II All functional operators
| booleanParam op=(ISNULL|ISNOTNULL) # BooleanPostfix // ??
| left=booleanParam op=( LE | LT | GE | GT ) right=booleanParam # BooleanEquality // VII
| op=NOT booleanExpression # BooleanNot // IV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public VTLPredicate visitBooleanPostfix(VTLParser.BooleanPostfixContext ctx) {
}

@Override
public VTLPredicate visitBooleanFunction(VTLParser.BooleanFunctionContext ctx) {
public VTLPredicate visitBooleanIsNullFunction(VTLParser.BooleanIsNullFunctionContext ctx) {
ParamVisitor paramVisitor = new ParamVisitor(referenceVisitor);
Object ref = paramVisitor.visit(ctx.booleanParam());
return getIsNullPredicate(ref);
Expand Down

0 comments on commit 41adadd

Please sign in to comment.