Skip to content

Commit

Permalink
[bug](jdbc) fix jdbc insert decimalv3 be core dump (apache#16353)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 authored Feb 3, 2023
1 parent 7a800bd commit 545b91f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/exec/table_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,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;
}
Expand Down

0 comments on commit 545b91f

Please sign in to comment.