csun5285 commented on code in PR #62409:
URL: https://github.com/apache/doris/pull/62409#discussion_r3071628984
##########
be/src/util/json/path_in_data.cpp:
##########
@@ -224,6 +224,36 @@ PathInData PathInData::copy_pop_back() const {
return new_path;
}
+void PathInData::normalize_legacy_flat_dot_key() {
Review Comment:
如果存的是 v['a']['b'],查询是 v['a.b'],这种是可以的,生成['a.b']迭代器失败了,可以去找 ['a']['b'] 的迭代器。
但是反过来不行,存的是 v['a.b'],查询是v['a']['b'],需要把 a 和 b 拼起来,但是如果是多层的话,就不知道拼哪个了,比如存的是
v['a.b']['c'] ,查询是 v['a']['b']['c'] 怎么确定拼的是 a 和b 还是 b 和c,这种太复杂了,不如直接都打平。
--
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]