This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
from ddb691987a8 [fix](case) fix global vars used in cases (#55933)
add eba8b7a6507 [opt](coercion) change the coercion behavior (#55672)
No new revisions were added by this update.
Summary of changes:
.../nereids/rules/expression/check/CheckCast.java | 24 +-
.../functions/ComputeSignatureHelper.java | 9 +-
.../expressions/functions/SearchSignature.java | 2 +-
.../trees/expressions/functions/scalar/Array.java | 4 +-
.../expressions/functions/scalar/Coalesce.java | 82 +-
.../expressions/functions/scalar/Greatest.java | 67 +-
.../functions/scalar/GreatestLeast.java | 83 ++
.../trees/expressions/functions/scalar/If.java | 108 +-
.../trees/expressions/functions/scalar/Least.java | 68 +-
.../trees/expressions/functions/scalar/NullIf.java | 67 +-
.../trees/expressions/functions/scalar/Nvl.java | 67 +-
.../nereids/trees/expressions/literal/Literal.java | 4 +-
.../trees/plans/logical/LogicalSetOperation.java | 14 +
.../apache/doris/nereids/types/AggStateType.java | 8 +
.../apache/doris/nereids/types/DecimalV3Type.java | 17 +-
.../doris/nereids/util/TypeCoercionUtils.java | 496 +++++++-
.../java/org/apache/doris/qe/GlobalVariable.java | 20 +
.../java/org/apache/doris/qe/SessionVariable.java | 8 +
.../main/java/org/apache/doris/qe/VariableMgr.java | 12 +-
.../doris/nereids/properties/UniqueTest.java | 4 +-
.../rules/SimplifyConditionalFunctionTest.java | 10 +-
.../doris/nereids/util/TypeCoercionMatrixTest.java | 1272 ++++++++++++++++++++
.../doris/nereids/util/TypeCoercionUtilsTest.java | 516 --------
.../test_outer_join_with_window_function.out | Bin 223 -> 220 bytes
...test_outer_join_with_window_function_datev2.out | Bin 223 -> 220 bytes
.../data/correctness_p0/test_select_constant.out | Bin 214 -> 216 bytes
.../float/test_float_special_values.out | Bin 66663 -> 66662 bytes
.../basic-elements/data-types/array-md.out | Bin 1969 -> 1984 bytes
.../jdbc/test_jdbc_query_mysql.out | Bin 82549 -> 82496 bytes
regression-test/data/insert_p0/insert.out | Bin 15882 -> 16004 bytes
.../array/test_array_char(255).csv | 4 +-
.../array/test_array_double.csv | 2 +-
.../array/test_array_varchar(65535).csv | 2 +-
.../test_array_varchar(65535)_hive_serde_res.csv | 2 +-
.../data/nereids_function_p0/type_coercion.out | Bin 732 -> 777 bytes
.../operator/test_arithmetic_operators.out | Bin 8249 -> 7894 bytes
.../conditional_functions/test_coalesce.out | Bin 8653 -> 8703 bytes
.../test_conditional_function.out | Bin 2498 -> 2722 bytes
.../conditional_functions/test_nullif.out | Bin 4252 -> 4701 bytes
.../data/nereids_p0/union/test_union.out | Bin 13835 -> 13952 bytes
.../nereids_rules_p0/eager_aggregate/basic.out | Bin 3111 -> 3201 bytes
.../eager_aggregate/basic_one_side.out | Bin 3131 -> 3221 bytes
.../filter_push_down/push_filter_through.out | Bin 9740 -> 9770 bytes
.../extend_infer_equal_predicate.out | Bin 30311 -> 30295 bytes
.../infer_predicate/infer_intersect_except.out | Bin 4358 -> 4335 bytes
.../infer_predicate/pull_up_predicate_literal.out | Bin 72316 -> 69355 bytes
.../infer_predicate/pull_up_predicate_set_op.out | Bin 19686 -> 19873 bytes
.../max_min_filter_push_down.out | Bin 5969 -> 5984 bytes
.../mv/date_trunc/mv_with_date_trunc.out | Bin 4420 -> 4378 bytes
.../data/nereids_rules_p0/pkfk/eliminate_inner.out | Bin 6967 -> 7072 bytes
.../pull_up_join_from_union.out | Bin 5762 -> 5777 bytes
.../simplify_conditional_function.out | Bin 1229 -> 1281 bytes
.../data/nereids_syntax_p0/set_operation.out | Bin 3623 -> 5494 bytes
.../sql/test_compare_expression.out | Bin 898 -> 781 bytes
.../test_arithmetic_operators.out | Bin 8249 -> 7894 bytes
.../query_p0/cast/test_complextype_to_json.out | Bin 1463 -> 1498 bytes
.../operator/test_arithmetic_operators.out | Bin 3289 -> 3193 bytes
.../sql_functions/array_functions/sql/q02.out | Bin 2827 -> 2854 bytes
.../array_functions/test_array_functions.out | Bin 29126 -> 29216 bytes
.../test_array_functions_by_literal.out | Bin 30224 -> 30420 bytes
.../test_array_functions_with_where.out | Bin 1869 -> 1911 bytes
.../conditional_functions/test_coalesce.out | Bin 8649 -> 8703 bytes
.../test_conditional_function.out | Bin 4260 -> 3048 bytes
.../conditional_functions/test_nullif.out | Bin 4280 -> 4574 bytes
regression-test/data/query_p0/union/test_union.out | Bin 13835 -> 13952 bytes
.../tpcds_sf100/constraints/query23.out | Bin 4992 -> 4986 bytes
.../tpcds_sf100/noStatsRfPrune/query1.out | Bin 2031 -> 2025 bytes
.../tpcds_sf100/noStatsRfPrune/query14.out | Bin 10059 -> 9921 bytes
.../tpcds_sf100/noStatsRfPrune/query23.out | Bin 4787 -> 4781 bytes
.../tpcds_sf100/noStatsRfPrune/query24.out | Bin 3122 -> 3116 bytes
.../tpcds_sf100/noStatsRfPrune/query30.out | Bin 3113 -> 3107 bytes
.../tpcds_sf100/noStatsRfPrune/query44.out | Bin 4889 -> 4877 bytes
.../tpcds_sf100/noStatsRfPrune/query58.out | Bin 7035 -> 7071 bytes
.../tpcds_sf100/noStatsRfPrune/query65.out | Bin 2774 -> 2771 bytes
.../tpcds_sf100/noStatsRfPrune/query72.out | Bin 4354 -> 4381 bytes
.../tpcds_sf100/noStatsRfPrune/query81.out | Bin 3069 -> 3063 bytes
.../tpcds_sf100/no_stats_shape/query1.out | Bin 2155 -> 2149 bytes
.../tpcds_sf100/no_stats_shape/query14.out | Bin 10693 -> 10555 bytes
.../tpcds_sf100/no_stats_shape/query23.out | Bin 4964 -> 4958 bytes
.../tpcds_sf100/no_stats_shape/query24.out | Bin 3278 -> 3272 bytes
.../tpcds_sf100/no_stats_shape/query30.out | Bin 3272 -> 3266 bytes
.../tpcds_sf100/no_stats_shape/query44.out | Bin 4889 -> 4877 bytes
.../tpcds_sf100/no_stats_shape/query58.out | Bin 7077 -> 7113 bytes
.../tpcds_sf100/no_stats_shape/query65.out | Bin 2860 -> 2857 bytes
.../tpcds_sf100/no_stats_shape/query72.out | Bin 4556 -> 4583 bytes
.../tpcds_sf100/no_stats_shape/query81.out | Bin 3228 -> 3222 bytes
.../shape_check/tpcds_sf100/rf_prune/query1.out | Bin 2103 -> 2097 bytes
.../shape_check/tpcds_sf100/rf_prune/query14.out | Bin 10129 -> 9991 bytes
.../shape_check/tpcds_sf100/rf_prune/query23.out | Bin 4974 -> 4968 bytes
.../shape_check/tpcds_sf100/rf_prune/query24.out | Bin 3122 -> 3116 bytes
.../shape_check/tpcds_sf100/rf_prune/query30.out | Bin 3239 -> 3233 bytes
.../shape_check/tpcds_sf100/rf_prune/query44.out | Bin 4689 -> 4677 bytes
.../shape_check/tpcds_sf100/rf_prune/query58.out | Bin 7152 -> 7188 bytes
.../shape_check/tpcds_sf100/rf_prune/query65.out | Bin 2916 -> 2913 bytes
.../shape_check/tpcds_sf100/rf_prune/query81.out | Bin 3061 -> 3055 bytes
.../data/shape_check/tpcds_sf100/shape/query1.out | Bin 2176 -> 2170 bytes
.../data/shape_check/tpcds_sf100/shape/query14.out | Bin 10603 -> 10465 bytes
.../data/shape_check/tpcds_sf100/shape/query23.out | Bin 5016 -> 5010 bytes
.../data/shape_check/tpcds_sf100/shape/query24.out | Bin 3277 -> 3271 bytes
.../data/shape_check/tpcds_sf100/shape/query30.out | Bin 3291 -> 3285 bytes
.../data/shape_check/tpcds_sf100/shape/query44.out | Bin 4689 -> 4677 bytes
.../data/shape_check/tpcds_sf100/shape/query58.out | Bin 7194 -> 7230 bytes
.../data/shape_check/tpcds_sf100/shape/query65.out | Bin 3002 -> 2999 bytes
.../data/shape_check/tpcds_sf100/shape/query81.out | Bin 3220 -> 3214 bytes
.../tpcds_sf1000/bs_downgrade_shape/query44.out | Bin 4683 -> 4671 bytes
.../data/shape_check/tpcds_sf1000/hint/query1.out | Bin 2259 -> 2253 bytes
.../data/shape_check/tpcds_sf1000/hint/query14.out | Bin 10758 -> 10620 bytes
.../data/shape_check/tpcds_sf1000/hint/query23.out | Bin 5016 -> 5010 bytes
.../data/shape_check/tpcds_sf1000/hint/query24.out | Bin 3433 -> 3427 bytes
.../data/shape_check/tpcds_sf1000/hint/query30.out | Bin 3411 -> 3405 bytes
.../data/shape_check/tpcds_sf1000/hint/query44.out | Bin 4761 -> 4749 bytes
.../data/shape_check/tpcds_sf1000/hint/query58.out | Bin 7213 -> 7249 bytes
.../data/shape_check/tpcds_sf1000/hint/query65.out | Bin 3240 -> 3237 bytes
.../data/shape_check/tpcds_sf1000/hint/query81.out | Bin 3359 -> 3353 bytes
.../data/shape_check/tpcds_sf1000/shape/query1.out | Bin 2178 -> 2172 bytes
.../shape_check/tpcds_sf1000/shape/query14.out | Bin 10599 -> 10461 bytes
.../shape_check/tpcds_sf1000/shape/query23.out | Bin 5016 -> 5010 bytes
.../shape_check/tpcds_sf1000/shape/query24.out | Bin 3282 -> 3276 bytes
.../shape_check/tpcds_sf1000/shape/query30.out | Bin 3272 -> 3266 bytes
.../shape_check/tpcds_sf1000/shape/query44.out | Bin 4683 -> 4671 bytes
.../shape_check/tpcds_sf1000/shape/query58.out | Bin 7194 -> 7230 bytes
.../shape_check/tpcds_sf1000/shape/query65.out | Bin 3002 -> 2999 bytes
.../shape_check/tpcds_sf1000/shape/query81.out | Bin 3220 -> 3214 bytes
.../shape_check/tpcds_sf10t_orc/shape/query1.out | Bin 2155 -> 2149 bytes
.../shape_check/tpcds_sf10t_orc/shape/query14.out | Bin 10621 -> 10483 bytes
.../shape_check/tpcds_sf10t_orc/shape/query23.out | Bin 5273 -> 5267 bytes
.../shape_check/tpcds_sf10t_orc/shape/query24.out | Bin 3272 -> 3266 bytes
.../shape_check/tpcds_sf10t_orc/shape/query30.out | Bin 2537 -> 2531 bytes
.../shape_check/tpcds_sf10t_orc/shape/query44.out | Bin 4841 -> 4829 bytes
.../shape_check/tpcds_sf10t_orc/shape/query58.out | Bin 7077 -> 7113 bytes
.../shape_check/tpcds_sf10t_orc/shape/query65.out | Bin 2860 -> 2857 bytes
.../shape_check/tpcds_sf10t_orc/shape/query72.out | Bin 4561 -> 4588 bytes
.../shape_check/tpcds_sf10t_orc/shape/query81.out | Bin 2537 -> 2531 bytes
.../data/shape_check/tpch_sf1000/hint/q11.out | Bin 2074 -> 2068 bytes
.../tpch_sf1000/nostats_rf_prune/q11.out | Bin 2168 -> 2162 bytes
.../data/shape_check/tpch_sf1000/rf_prune/q11.out | Bin 2176 -> 2170 bytes
.../data/shape_check/tpch_sf1000/shape/q11.out | Bin 2176 -> 2170 bytes
.../shape_check/tpch_sf1000/shape_no_stats/q11.out | Bin 2168 -> 2162 bytes
.../test_inlineview_with_project.groovy | 2 +-
.../float/test_float_special_values.groovy | 54 +-
.../nested_types/query/sql/nested_with_join.sql | 6 +-
.../jdbc/test_jdbc_query_mysql.groovy | 24 +-
.../nereids_function_p0/scalar_function/Map.groovy | 8 +-
.../suites/nereids_p0/datatype/test_cast.groovy | 8 +-
.../nereids_p0/datatype/test_compatible.groovy | 27 -
.../fold_constant/fold_constant_by_be.groovy | 4 +-
.../suites/nereids_p0/join/test_join_on.groovy | 2 +-
.../suites/nereids_p0/union/test_union.groovy | 13 +-
.../infer_predicate/infer_intersect_except.groovy | 9 +-
.../pull_up_predicate_literal.groovy | 18 -
.../mv/date_trunc/mv_with_date_trunc.groovy | 3 +-
.../nereids_rules_p0/mv/variant/variant_mv.groovy | 2 +-
.../suites/nereids_syntax_p0/array_function.groovy | 11 +-
.../test_simplify_comparison.groovy | 10 +-
.../suites/prepared_stmt_p0/prepared_stmt.groovy | 2 +-
.../suites/query_p0/cast/test_cast.groovy | 6 +-
.../query_p0/cast/test_complextype_to_json.groovy | 4 +-
.../query_p0/operator/test_sort_operator.groovy | 2 +-
.../sql_functions/array_functions/sql/q02.sql | 2 +-
.../array_functions/test_array_functions.groovy | 2 +-
.../test_array_functions_by_literal.groovy | 10 +-
.../test_array_functions_with_where.groovy | 2 +-
.../test_conditional_function.groovy | 58 +-
.../conditional_functions/test_nullif.groovy | 2 +-
.../suites/query_p0/union/test_union.groovy | 9 +-
.../return_in_advance_if_block_is_empty.groovy | 9 +-
166 files changed, 2103 insertions(+), 1178 deletions(-)
create mode 100644
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/GreatestLeast.java
create mode 100644
fe/fe-core/src/test/java/org/apache/doris/nereids/util/TypeCoercionMatrixTest.java
delete mode 100644
regression-test/suites/nereids_p0/datatype/test_compatible.groovy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]