Skip to content

Commit f0e7618

Browse files
committed
minor: segregate null functions in a seperate block
1 parent 4f19bb2 commit f0e7618

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pinot-common/src/main/java/org/apache/pinot/common/function/TransformFunctionType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public enum TransformFunctionType {
5555
LESS_THAN("less_than"),
5656
LESS_THAN_OR_EQUAL("less_than_or_equal"),
5757
IN("in"),
58+
5859
IS_NULL("is_null"),
5960
IS_NOT_NULL("is_not_null"),
6061

pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ private TransformFunctionFactory() {
165165
// tuple selection
166166
put(canonicalize(TransformFunctionType.LEAST.getName().toLowerCase()), LeastTransformFunction.class);
167167
put(canonicalize(TransformFunctionType.GREATEST.getName().toLowerCase()), GreatestTransformFunction.class);
168+
169+
// null handling
168170
put(canonicalize(TransformFunctionType.IS_NULL.getName().toLowerCase()), IsNullTransformFunction.class);
169171
put(canonicalize(TransformFunctionType.IS_NOT_NULL.getName().toLowerCase()),
170172
IsNotNullTransformFunction.class);

0 commit comments

Comments
 (0)