You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/02/05 04:11:44 UTC
[doris] 02/15: [bug](jdbc) fix jdbc insert decimalv3 be core dump (#16353)
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 <87...@users.noreply.github.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org