Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22613 )
Change subject: IMPALA-13843: Support usage of strings directly in rapidjson ...................................................................... IMPALA-13843: Support usage of strings directly in rapidjson The RapidJSON library recalculates length of a StringRef each time when using char*, until null character. Within the codebase, many times we convert from string to char* for RapidJSON. Instead with RAPIDJSON_HAS_STDSTRING, we can use strings directly, which inherently contain the size, instead of recalculating each time. This is a major convenience and a bit more efficient during both JSON generation and parsing. This simplifies many methods(i.e. AddMember, HasMember, etc) and the creation of Document::Value. This does not remove compatibility for existing char* and still remains as a stable feature within RapidJSON. Change-Id: I84c6f17690f7a2e958a6dfbb3637832f5ab6ee53 Reviewed-on: http://gerrit.cloudera.org:8080/22613 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M be/CMakeLists.txt M be/src/catalog/catalog-server.cc M be/src/exprs/string-functions.cc M be/src/runtime/coordinator-backend-state.cc M be/src/service/impala-http-handler.cc M be/src/util/json-util.cc M be/src/util/json-util.h M be/src/util/jwt-util.cc M be/src/util/lineage-util.h M be/src/util/logging-support.cc M be/src/util/metrics.cc M be/src/util/redactor.cc M be/src/util/runtime-profile.cc M be/src/util/webserver.cc 14 files changed, 192 insertions(+), 198 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/22613 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I84c6f17690f7a2e958a6dfbb3637832f5ab6ee53 Gerrit-Change-Number: 22613 Gerrit-PatchSet: 4 Gerrit-Owner: Surya Hebbar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Riza Suminto <[email protected]> Gerrit-Reviewer: Surya Hebbar <[email protected]>
