eldenmoon commented on code in PR #63322:
URL: https://github.com/apache/doris/pull/63322#discussion_r3256580937
##########
be/src/util/json/json_parser.cpp:
##########
@@ -84,8 +89,29 @@ void JSONDataParser<ParserImpl>::traverse(const Element&
element, ParseContext&
// we should set has_nested_in_flatten to false when traverse array
finished for next array otherwise it will be true for next array
ctx.has_nested_in_flatten = false;
} else {
- appendValueIfNotDuplicate(ctx, ctx.builder.get_parts(),
getValueAsField(element));
+ appendValueIfNotDuplicate(ctx, ctx.builder.get_parts(),
+ getValueAsField(element,
shouldPreserveNumberAsString(ctx)));
+ }
Review Comment:
这个线程描述的是 nested array/object 的 JSONB serialization path。CIR-20240
这次按最小修复范围只处理 Variant predefined decimal materialization 和 JSON reader 测试覆盖,不扩展到
JSONB;用户也明确要求 JSONB 先不处理,后续需要单独设计 schema-aware/JSONB 路径。
--
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]