pranav.lo...@cloudera.com has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18413 )

Change subject: IMPALA-11205: Implement Statistical functions: CORR(), 
COVAR_SAMP()  and COVAR_POP()
......................................................................


Patch Set 28:

(4 comments)

> Patch Set 25:
>
> (1 comment)

http://gerrit.cloudera.org:8080/#/c/18413/26//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/18413/26//COMMIT_MSG@7
PS26, Line 7: :
> nit: remove the space before ":"
Done


http://gerrit.cloudera.org:8080/#/c/18413/25/be/src/exprs/aggregate-functions-ir.cc
File be/src/exprs/aggregate-functions-ir.cc:

http://gerrit.cloudera.org:8080/#/c/18413/25/be/src/exprs/aggregate-functions-ir.cc@300
PS25, Line 300: // Correlation coefficient formula used:
              : // r = covar / (√(xvar * yvar)
              : struct CorrState {
              :   int64_t count; // number of elements
              :   double xavg; // average of x elements
              :   double yavg; // average of y elements
              :   double xvar; // n times the variance of x elements
              :
> As we discussed in the call, removing the code duplication brings up more u
Sure, I've added that.


http://gerrit.cloudera.org:8080/#/c/18413/26/be/src/exprs/aggregate-functions-ir.cc
File be/src/exprs/aggregate-functions-ir.cc:

http://gerrit.cloudera.org:8080/#/c/18413/26/be/src/exprs/aggregate-functions-ir.cc@343
PS26, Line 343:   if (state->count <= 1) {
              :     mems
> nit: put "}" and "else {" at the same line
Done


http://gerrit.cloudera.org:8080/#/c/18413/26/be/src/exprs/aggregate-functions-ir.cc@513
PS26, Line 513:     memset(state, 0, sizeof(CovarState));
              :   } else
> nit: put "}" and "else {" at the same line
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I32ad627c953ba24d9cde2d5549bdd0d27a9c0d06
Gerrit-Change-Number: 18413
Gerrit-PatchSet: 28
Gerrit-Owner: Anonymous Coward <pranav.lo...@cloudera.com>
Gerrit-Reviewer: Anonymous Coward <pranav.lo...@cloudera.com>
Gerrit-Reviewer: Gergely Fürnstáhl <gfurnst...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Jian Zhang <zjsar...@gmail.com>
Gerrit-Reviewer: Kurt Deschler <kdesc...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com>
Gerrit-Comment-Date: Fri, 17 Jun 2022 08:25:33 +0000
Gerrit-HasComments: Yes

Reply via email to