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

panxiaolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 31ab7c61042 [Bug](function) fix to_quantile_state input type judge 
(#25648)
31ab7c61042 is described below

commit 31ab7c610424fbb06f7c6fee10da40d8cac91bdc
Author: Pxl <[email protected]>
AuthorDate: Thu Oct 19 21:55:26 2023 +0800

    [Bug](function) fix to_quantile_state input type judge (#25648)
    
    [RUNTIME_ERROR]Illegal column Nullable(Float64) of argument of function 
to_quantile_state\n\n\
---
 be/src/vec/functions/function_quantile_state.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/functions/function_quantile_state.cpp 
b/be/src/vec/functions/function_quantile_state.cpp
index 71409f93323..787931334a9 100644
--- a/be/src/vec/functions/function_quantile_state.cpp
+++ b/be/src/vec/functions/function_quantile_state.cpp
@@ -198,9 +198,9 @@ public:
                 status = execute_internal<ColumnString, true>(column, 
data_type, column_result);
             } else if (nested_which.is_int64()) {
                 status = execute_internal<ColumnInt64, true>(column, 
data_type, column_result);
-            } else if (which.is_float32()) {
+            } else if (nested_which.is_float32()) {
                 status = execute_internal<ColumnFloat32, true>(column, 
data_type, column_result);
-            } else if (which.is_float64()) {
+            } else if (nested_which.is_float64()) {
                 status = execute_internal<ColumnFloat64, true>(column, 
data_type, column_result);
             } else {
                 return type_error();


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

Reply via email to