> On Dec. 2, 2014, 9:58 a.m., Rajat Khandelwal wrote: > > lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTableResolver.java, > > line 251 > > <https://reviews.apache.org/r/28596/diff/1/?file=779976#file779976line251> > > > > Won't we have discarded all facts if no fact contains a particular join > > chain's src column? > > Amareshwari Sriramadasu wrote: > Yes. > > This is for pruning the paths in join chain, which contain columns that > are not there in any fact. > > For example : > > Fact1 : col1, col2 > Fact2 : col3 > Fact3 : col5 > > JoinChain: > path1 : col1 -> dim > path2 : col2 -> dim > path3 : col3 -> dim > path4 : col4 -> dim > > In the first pruning Fact3 gets pruned. > In the second pruning - path4 (containgin col4) gets pruned > > Will add the above example in code
Actually join path pruning happens already in second phase of candiate table resolver. I will remove this code. - Amareshwari ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28596/#review63504 ----------------------------------------------------------- On Dec. 2, 2014, 7:25 a.m., Amareshwari Sriramadasu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28596/ > ----------------------------------------------------------- > > (Updated Dec. 2, 2014, 7:25 a.m.) > > > Review request for lens and Jaideep dhok. > > > Bugs: LENS-41 > https://issues.apache.org/jira/browse/LENS-41 > > > Repository: lens > > > Description > ------- > > Includes changes required for query rewriter to understand chainName.column > and resolve the join corresponding to chain. > > Still pending: If query involves two different chains leading same > destination tables. Will raise a followup issue and put patch there. > > > Diffs > ----- > > lens-cube/src/main/java/org/apache/lens/cube/metadata/JoinChain.java > ebdf952 > > lens-cube/src/main/java/org/apache/lens/cube/metadata/ReferencedDimAtrribute.java > 51a9528 > lens-cube/src/main/java/org/apache/lens/cube/parse/AliasReplacer.java > d255566 > > lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTableResolver.java > 8b9e604 > lens-cube/src/main/java/org/apache/lens/cube/parse/CubeQueryContext.java > 2409db8 > > lens-cube/src/main/java/org/apache/lens/cube/parse/DenormalizationResolver.java > 93bcabe > lens-cube/src/main/java/org/apache/lens/cube/parse/JoinResolver.java > bc15890 > lens-cube/src/test/java/org/apache/lens/cube/parse/CubeTestSetup.java > 485ff46 > lens-cube/src/test/java/org/apache/lens/cube/parse/TestJoinResolver.java > 114bbc4 > > Diff: https://reviews.apache.org/r/28596/diff/ > > > Testing > ------- > > > Thanks, > > Amareshwari Sriramadasu > >
