Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/17464 )
Change subject: IMPALA-10679: Add builtin functions to comptute SHA-1 and SHA-2 digest. ...................................................................... Patch Set 3: (2 comments) Looks good, only had some minor comments http://gerrit.cloudera.org:8080/#/c/17464/3/be/src/exprs/expr-test.cc File be/src/exprs/expr-test.cc: http://gerrit.cloudera.org:8080/#/c/17464/3/be/src/exprs/expr-test.cc@5582 PS3, Line 5582: TestStringValue(sha2fn + ", 512)", expected); Please add some tests with some special values, e.g. NULL, empty string http://gerrit.cloudera.org:8080/#/c/17464/3/be/src/exprs/utility-functions-ir.cc File be/src/exprs/utility-functions-ir.cc: http://gerrit.cloudera.org:8080/#/c/17464/3/be/src/exprs/utility-functions-ir.cc@264 PS3, Line 264: discard_result What is the return value of SHA* functions and why we ignore it? I think we should either add a code comment why we ignore the result, or add a warning to 'ctx'. -- To view, visit http://gerrit.cloudera.org:8080/17464 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: If163b7abda17cca3074c86519d59bcfc6ace21be Gerrit-Change-Number: 17464 Gerrit-PatchSet: 3 Gerrit-Owner: Amogh Margoor <amarg...@gmail.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com> Gerrit-Reviewer: Zoltan Borok-Nagy <borokna...@cloudera.com> Gerrit-Comment-Date: Mon, 17 May 2021 16:29:45 +0000 Gerrit-HasComments: Yes