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

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit dc665d2d3516a15a9db8fb329bb00508837f6ae0
Author: zhangstar333 <[email protected]>
AuthorDate: Fri Feb 3 10:00:06 2023 +0800

    [bug](jdbc) fix jdbc insert decimalv3 be core dump (#16353)
---
 be/src/exec/table_connector.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/exec/table_connector.cpp b/be/src/exec/table_connector.cpp
index 6c310e4a60..c79cf4d63b 100644
--- a/be/src/exec/table_connector.cpp
+++ b/be/src/exec/table_connector.cpp
@@ -389,7 +389,8 @@ Status TableConnector::convert_column_data(const 
vectorized::ColumnPtr& column_p
     case TYPE_DECIMAL32:
     case TYPE_DECIMAL64:
     case TYPE_DECIMAL128I: {
-        auto val = type_ptr->to_string(*column, row);
+        auto decimal_type = remove_nullable(type_ptr);
+        auto val = decimal_type->to_string(*column, row);
         fmt::format_to(_insert_stmt_buffer, "{}", val);
         break;
     }


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

Reply via email to