From a6a9c7c4912051754f0e7e8ef2b440582f4e520b Mon Sep 17 00:00:00 2001 From: LemonLiTree Date: Wed, 17 Apr 2024 15:23:16 +0800 Subject: [PATCH] fix --- .../trees/expressions/functions/scalar/JsonContains.java | 2 +- .../trees/expressions/functions/scalar/JsonDepth.java | 2 +- gensrc/script/doris_builtins_functions.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonContains.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonContains.java index 6841de6c4db4ef6..0a4bd6758cbe333 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonContains.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonContains.java @@ -38,7 +38,7 @@ * ScalarFunction 'json_contains'. This class is generated by GenerateFunction . */ public class JsonContains extends ScalarFunction - implements BinaryExpression, ExplicitlyCastableSignature, AlwaysNullable { + implements BinaryExpression, ExplicitlyCastableSignature, PropagateNullable { public static final List SIGNATURES = ImmutableList.of( FunctionSignature.ret(BooleanType.INSTANCE).args(JsonType.INSTANCE, JsonType.INSTANCE), diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonDepth.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonDepth.java index 399de9a45ffca1f..231e26595a17477 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonDepth.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/JsonDepth.java @@ -35,7 +35,7 @@ * ScalarFunction 'json_depth'. This class is generated by GenerateFunction. */ public class JsonDepth extends ScalarFunction - implements BinaryExpression, ExplicitlyCastableSignature, AlwaysNullable { + implements BinaryExpression, ExplicitlyCastableSignature, PropagateNullable { public static final List SIGNATURES = ImmutableList.of( FunctionSignature.ret(IntegerType.INSTANCE).args(JsonType.INSTANCE) diff --git a/gensrc/script/doris_builtins_functions.py b/gensrc/script/doris_builtins_functions.py index c00318e72a1e346..7f58f3fd84ac894 100644 --- a/gensrc/script/doris_builtins_functions.py +++ b/gensrc/script/doris_builtins_functions.py @@ -1784,10 +1784,10 @@ [['json_length'], 'INT', ['JSONB'], 'ALWAYS_NULLABLE'], [['json_length'], 'INT', ['JSONB', 'VARCHAR'], 'ALWAYS_NULLABLE'], [['json_length'], 'INT', ['JSONB', 'STRING'], 'ALWAYS_NULLABLE'], - [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB'], 'ALWAYS_NULLABLE'], - [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB', 'VARCHAR'], 'ALWAYS_NULLABLE'], - [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB', 'STRING'], 'ALWAYS_NULLABLE'], - [['json_depth'], 'INT', ['JSONB'], 'ALWAYS_NULLABLE'], + [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB'], 'DEPEND_ON_ARGUMENT'], + [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB', 'VARCHAR'], 'DEPEND_ON_ARGUMENT'], + [['json_contains'], 'BOOLEAN', ['JSONB', 'JSONB', 'STRING'], 'DEPEND_ON_ARGUMENT'], + [['json_depth'], 'INT', ['JSONB'], 'DEPEND_ON_ARGUMENT'], # Json functions [['get_json_int'], 'INT', ['VARCHAR', 'VARCHAR'], 'ALWAYS_NULLABLE'],