Joe McDonnell has posted comments on this change. Change subject: IMPALA-4792: Fix number of distinct values for a CASE with constant outputs ......................................................................
Patch Set 5: (6 comments) http://gerrit.cloudera.org:8080/#/c/5768/5/fe/src/test/java/org/apache/impala/analysis/ExprNdvTest.java File fe/src/test/java/org/apache/impala/analysis/ExprNdvTest.java: Line 32: String stmtStr = "select " + expr + " from functional.alltypes"; > remove tabs and trailing spaces Done Line 42: public Expr CalcsNdvOk(String stmtStr, long expectedNdv) > odd/not immediately intuitive name Changed to VerifyNdv Line 48: // Go into the select list and get the expression > superfluous comment (it simply states what's apparent from the next line), Done Line 51: > use blank lines judiciously, to separate logically separate pieces of code Done Line 54: return analyzedExpr; > why return anything? No reason. I have changed this to void. Line 71: CalcsNdvOkBasic("case when id = 1 then 'yes' when id = 2 then 'maybe' else 'no' end", 3); > long line (and elsewhere) Done -- To view, visit http://gerrit.cloudera.org:8080/5768 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I21dbdaad8452b7e58c477612b47847dccd9d98d2 Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Alex Behm <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Marcel Kornacker <[email protected]> Gerrit-HasComments: Yes
