github-actions[bot] commented on code in PR #61995:
URL: https://github.com/apache/doris/pull/61995#discussion_r3144601245


##########
be/src/core/data_type_serde/complex_type_deserialize_util.h:
##########
@@ -42,7 +42,9 @@ struct ComplexTypeDeserializeUtil {
         std::vector<SplitResult> elements;
         for (int pos = 0; pos < str.size; ++pos) {
             char c = str.data[pos];
-            if (c == '"' || c == '\'') {
+            if (c == '\\' && pos + 1 < static_cast<int>(str.size)) {

Review Comment:
   This helper is only used by the `*_serde::from_string()` implementations. 
The Stream Load JSON path described in the PR body still goes through 
`NewJsonReader::_simdjson_write_data_to_column()` and then 
`DataTypeMapSerDe::deserialize_one_cell_from_json()` when `_is_load` is true 
(`be/src/format/json/new_json_reader.cpp:1084-1121`). That map JSON path 
already has its own `\` handling at 
`be/src/core/data_type_serde/data_type_map_serde.cpp:244-245`, and it never 
calls `split_by_delimiter()`. So this change does not appear to fix the 
reported Stream Load regression; it fixes the `from_string()` path instead. Can 
you either add a reproducer on the real load path and patch that path if 
needed, or narrow the PR description/tests to the string or JSONB-to-map 
conversion flow that this code actually changes?



-- 
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]

Reply via email to