Skip to content

Commit 545b91f

Browse files
authored
[bug](jdbc) fix jdbc insert decimalv3 be core dump (#16353)
1 parent 7a800bd commit 545b91f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

be/src/exec/table_connector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ Status TableConnector::convert_column_data(const vectorized::ColumnPtr& column_p
279279
case TYPE_DECIMAL32:
280280
case TYPE_DECIMAL64:
281281
case TYPE_DECIMAL128I: {
282-
auto val = type_ptr->to_string(*column, row);
282+
auto decimal_type = remove_nullable(type_ptr);
283+
auto val = decimal_type->to_string(*column, row);
283284
fmt::format_to(_insert_stmt_buffer, "{}", val);
284285
break;
285286
}

0 commit comments

Comments
 (0)