This is an automated email from the ASF dual-hosted git repository.

xuyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 62561834a8 [Feature](array-type) Support is-null-predicate for array 
type (#12237)
62561834a8 is described below

commit 62561834a8c6dbeedcab24105e6717c09d775158
Author: xy720 <[email protected]>
AuthorDate: Sat Sep 3 11:37:57 2022 +0800

    [Feature](array-type) Support is-null-predicate for array type (#12237)
---
 be/src/exprs/is_null_predicate.cpp                                 | 2 ++
 .../src/main/java/org/apache/doris/analysis/IsNullPredicate.java   | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/be/src/exprs/is_null_predicate.cpp 
b/be/src/exprs/is_null_predicate.cpp
index bd240785cf..3b4b5b81a8 100644
--- a/be/src/exprs/is_null_predicate.cpp
+++ b/be/src/exprs/is_null_predicate.cpp
@@ -48,6 +48,7 @@ template BooleanVal 
IsNullPredicate::is_null(FunctionContext*, const DoubleVal&)
 template BooleanVal IsNullPredicate::is_null(FunctionContext*, const 
StringVal&);
 template BooleanVal IsNullPredicate::is_null(FunctionContext*, const 
DateTimeVal&);
 template BooleanVal IsNullPredicate::is_null(FunctionContext*, const 
DecimalV2Val&);
+template BooleanVal IsNullPredicate::is_null(FunctionContext*, const 
CollectionVal&);
 
 template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
AnyVal&);
 template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
BooleanVal&);
@@ -61,5 +62,6 @@ template BooleanVal 
IsNullPredicate::is_not_null(FunctionContext*, const DoubleV
 template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
StringVal&);
 template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
DateTimeVal&);
 template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
DecimalV2Val&);
+template BooleanVal IsNullPredicate::is_not_null(FunctionContext*, const 
CollectionVal&);
 
 } // namespace doris
diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java
index a837079206..00f01cc299 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java
@@ -61,6 +61,13 @@ public class IsNullPredicate extends Predicate {
             String isNotNullSymbol = isNullSymbol.replace("7is_null", 
"11is_not_null");
             
functionSet.addBuiltinBothScalaAndVectorized(ScalarFunction.createBuiltinOperator(IS_NOT_NULL,
                     isNotNullSymbol, Lists.newArrayList(t), Type.BOOLEAN, 
NullableMode.ALWAYS_NOT_NULLABLE));
+
+            // for array type
+            
functionSet.addBuiltinBothScalaAndVectorized(ScalarFunction.createBuiltinOperator(IS_NULL,
 isNullSymbol,
+                    Lists.newArrayList(Type.ARRAY), Type.BOOLEAN, 
NullableMode.ALWAYS_NOT_NULLABLE));
+
+            
functionSet.addBuiltinBothScalaAndVectorized(ScalarFunction.createBuiltinOperator(IS_NOT_NULL,
+                    isNotNullSymbol, Lists.newArrayList(Type.ARRAY), 
Type.BOOLEAN, NullableMode.ALWAYS_NOT_NULLABLE));
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to