Zihao Ye has posted comments on this change. ( http://gerrit.cloudera.org:8080/21038 )
Change subject: IMPALA-12824: Adds built-in functions prettyprint_duration and prettyprint_bytes. ...................................................................... Patch Set 4: (1 comment) Thanks for the explanation. http://gerrit.cloudera.org:8080/#/c/21038/4/be/src/exprs/string-functions-ir.cc File be/src/exprs/string-functions-ir.cc: http://gerrit.cloudera.org:8080/#/c/21038/4/be/src/exprs/string-functions-ir.cc@1902 PS4, Line 1902: StringVal result(context, fmt_str.size()); : if (UNLIKELY(result.is_null)) return StringVal::null(); : uint8_t* ptr = result.ptr; : memcpy(ptr, fmt_str.c_str(), fmt_str.size()); > These lines of code perform the same functionality as StringVal::CopyFrom, Ack -- To view, visit http://gerrit.cloudera.org:8080/21038 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I3e76632ce21ad2ca5df474160338699a542a6913 Gerrit-Change-Number: 21038 Gerrit-PatchSet: 4 Gerrit-Owner: Jason Fehr <[email protected]> Gerrit-Reviewer: Andrew Sherman <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Riza Suminto <[email protected]> Gerrit-Reviewer: Yifan Zhang <[email protected]> Gerrit-Reviewer: Zihao Ye <[email protected]> Gerrit-Comment-Date: Wed, 21 Feb 2024 01:48:08 +0000 Gerrit-HasComments: Yes
