github-actions[bot] commented on code in PR #62179:
URL: https://github.com/apache/doris/pull/62179#discussion_r3055512185
##########
be/src/core/data_type_serde/data_type_number_serde.cpp:
##########
@@ -298,7 +303,8 @@ Status
DataTypeNumberSerDe<T>::read_column_from_arrow(IColumn& column,
} else {
Int128 val = 0;
StringRef str_ref(raw_data, raw_data_len);
- if (!try_read_int_text(val, str_ref)) {
+ CastParameters params;
+ if (!CastToInt::from_string<false>(str_ref, val,
params)) {
Review Comment:
`TYPE_TIME` is now explicitly instantiated at the bottom of this file, and
`DataTypeNumberBase<TYPE_TIME>::get_serde()` returns this generic serde, so
this parse helper becomes reachable for real text-input paths such as
`from_fe_string()` (used by default values, schema change, delete conditions,
etc.). But `try_parse_impl()` still only handles float/double, bool, and
integer types. For `PT == TYPE_TIME`, the new code throws
`NOT_IMPLEMENTED_ERROR` instead of parsing the value, even though the same PR
added `TYPE_TIME` handling in JSON/MySQL/ORC/text output branches. That means
this refactor is no longer behavior-preserving for deprecated `TIME` columns.
Please either keep `TYPE_TIME` out of the generic serde expansion here, or add
a `PT == TYPE_TIME` branch that parses it the same way as the float-like path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]