We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f61489d commit 2041ed3Copy full SHA for 2041ed3
1 file changed
src/paimon/common/utils/decimal_utils.cpp
@@ -74,7 +74,7 @@ Result<Decimal::int128_t> DecimalUtils::StrToInt128(const std::string& str) {
74
try {
75
size_t length = str.length();
76
if (length == 0) {
77
- return Decimal::int128_t{0};
+ return Status::Invalid("invalid string: [], cannot convert to int128");
78
}
79
bool is_negative = str[0] == '-';
80
size_t posn = is_negative ? 1 : 0;
0 commit comments