Yuanhao Luo has posted comments on this change. Change subject: IMPALA-2878: Remove unused function and duplicate codes. ......................................................................
Patch Set 2: (2 comments) http://gerrit.cloudera.org:8080/#/c/3311/2/be/src/exprs/string-functions-ir.cc File be/src/exprs/string-functions-ir.cc: Line 808: std::function<char* (unsigned)> allocator = [&](unsigned size)->char* { > This feels a little heavyweight. What about breaking impala::Base64Encode u I don't think breaks this up to two functions is a good idea, since that we just need few lines to calculate the length of the encoded string. Can I just leave this as it is now? http://gerrit.cloudera.org:8080/#/c/3311/2/be/src/util/url-coding-test.cc File be/src/util/url-coding-test.cc: Line 55 > It's OK to have a base64decode function that is only used in testing. Do you mean I should add a base64decode function in this file just for testing the correctness of the result of the encode function? Or just keep these two lines? Without add a base64decode function here, wouldn't compile error occur? -- To view, visit http://gerrit.cloudera.org:8080/3311 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ica8f61fce7af16aa859f71d0763303e8d832ddcd Gerrit-PatchSet: 2 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Yuanhao Luo <[email protected]> Gerrit-Reviewer: Jim Apple <[email protected]> Gerrit-Reviewer: Yuanhao Luo <[email protected]> Gerrit-HasComments: Yes
