Yifan Zhang has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/23475 )

Change subject: IMPALA-14467: Support quoted keys with dots in get_json_object 
path strings
......................................................................


Patch Set 6:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util-test.cc
File be/src/util/string-util-test.cc:

http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util-test.cc@135
PS5, Line 135:
> Can we also test "\n", "\\n", "\t", "\\t" ?
Done


http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util.cc
File be/src/util/string-util.cc:

http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util.cc@95
PS5, Line 95: uint
> We prefer using uint8_t over char since char type can be signed or unsigned
Done


http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util.cc@107
PS5, Line 107:   result->reserve(end - start);
> Let's add a check before this to make sure 'end - start' is a valid value,
We use this utility function to extract JSON path key from 'path_str', and the 
length of 'path_str' <= StringVal::MAX_LENGTH, so I think there is no need to 
check this.


http://gerrit.cloudera.org:8080/#/c/23475/5/be/src/util/string-util.cc@113
PS5, Line 113:       result->push_back(*p);
> Is it true that "\t" will become "t" and "\n" will become "n"?
Yes, I think so. If we want to include "\t" or "\n" in JSON path, we should use 
"\\t", "\\n".



--
To view, visit http://gerrit.cloudera.org:8080/23475
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia3618d9e029501f9ac0e23190feb8263968b1b9f
Gerrit-Change-Number: 23475
Gerrit-PatchSet: 6
Gerrit-Owner: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Pranav Lodha <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Comment-Date: Sat, 13 Dec 2025 04:57:10 +0000
Gerrit-HasComments: Yes

Reply via email to