----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29881/#review68875 -----------------------------------------------------------
lens-cube/src/main/java/org/apache/lens/cube/parse/GroupbyResolver.java <https://reviews.apache.org/r/29881/#comment113386> Make another method `isConstantsUsed(exprAST)` which calls `isConstantsUsed(exprAST, false)`. The reason being the method with 2 arguments is recursive, The calling function which is just going to start recursion should need no info about arguments passed between recursive calls. lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java <https://reviews.apache.org/r/29881/#comment113388> +1 lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java <https://reviews.apache.org/r/29881/#comment113390> test cases for constants inside measures too? - Rajat Khandelwal On Jan. 20, 2015, 12:46 p.m., Sushil Mohanty wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29881/ > ----------------------------------------------------------- > > (Updated Jan. 20, 2015, 12:46 p.m.) > > > Review request for lens and Amareshwari Sriramadasu. > > > Bugs: LENS-131 > https://issues.apache.org/jira/browse/LENS-131 > > > Repository: lens > > > Description > ------- > > When constants get projected the queries by default they were being added to > group by. Such queries fail with No Such Column error. > > > Diffs > ----- > > lens-cube/src/main/java/org/apache/lens/cube/parse/GroupbyResolver.java > 2531c49 > lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java > cb70b66 > > Diff: https://reviews.apache.org/r/29881/diff/ > > > Testing > ------- > > Tested with queries with different types of constants projected and rewriter > skipping them in group by. Added unit test for the same. > > > Thanks, > > Sushil Mohanty > >
