github-actions[bot] commented on code in PR #62179:
URL: https://github.com/apache/doris/pull/62179#discussion_r3059571269
##########
be/src/core/data_type_serde/data_type_number_serde.cpp:
##########
@@ -725,7 +728,7 @@ template <PrimitiveType PT, bool is_strict_mode>
bool try_parse_impl(typename PrimitiveTypeTraits<PT>::CppType& x, const
StringRef& str_ref,
CastParameters& params) {
if constexpr (is_float_or_double(PT)) {
- return try_read_float_text(x, str_ref);
+ return CastToFloat::from_string(str_ref, x, params);
Review Comment:
`TYPE_TIME` is still missing from this shared parser helper, but
`DataTypeNumberSerDe<TYPE_TIME>` is explicitly instantiated at the bottom of
the file now. That means `from_string()` / `from_olap_string()` for `TIME` go
through `try_parse_impl<TYPE_TIME, ...>()` and hit the `NOT_IMPLEMENTED_ERROR`
branch instead of parsing the value.
This is a behavior regression for real text-input paths that use the generic
number serde owner (for example default-value or schema-change style flows that
call these APIs). Please either add a `PT == TYPE_TIME` branch here that reuses
the existing float-like parsing path, or stop routing `TYPE_TIME` through this
generic text parser.
--
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]