Skip to content

Commit 2041ed3

Browse files
committed
fix
1 parent f61489d commit 2041ed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paimon/common/utils/decimal_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Result<Decimal::int128_t> DecimalUtils::StrToInt128(const std::string& str) {
7474
try {
7575
size_t length = str.length();
7676
if (length == 0) {
77-
return Decimal::int128_t{0};
77+
return Status::Invalid("invalid string: [], cannot convert to int128");
7878
}
7979
bool is_negative = str[0] == '-';
8080
size_t posn = is_negative ? 1 : 0;

0 commit comments

Comments
 (0)