[ https://issues.apache.org/jira/browse/PIG-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265658#comment-13265658 ]
jirapos...@reviews.apache.org commented on PIG-2167: ---------------------------------------------------- bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/relational/LOCube.java, line 74 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100633#file100633line74> bq. > bq. > I see, you cut this out in LogicalPlanGenerator so you assume this won't get called before the plan is generated. That'll probably work for now. We should definitely fix this in the next stage. Yeah. Will fix that in the next stage (implementing physical operator). bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/LogicalPlanBuilder.java, line 561 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100639#file100639line561> bq. > bq. > you can merge this try/catch with the one above. Done. bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestCubeOperator.java, line 58 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100648#file100648line58> bq. > bq. > try Util.createFile(String[] data) bq. > bq. > Even better, you can now use the new MockLoader from PIG-2650 (save a bit more time and complexity on the tests..) Updated. Now all test cases use MockLoader. bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestCubeOperator.java, line 302 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100648#file100648line302> bq. > bq. > return here Updated. bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestCubeOperator.java, line 318 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100648#file100648line318> bq. > bq. > Assert.fail("Expected to throw an exception when duplicate dimensions are detected!"); bq. > bq. > (otherwise your test passes even if this doesn't work!) Updated. bq. On 2012-04-30 00:54:08, Dmitriy Ryaboy wrote: bq. > http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestCubeOperator.java, line 74 bq. > <https://reviews.apache.org/r/4670/diff/1-2/?file=100648#file100648line74> bq. > bq. > ExecMode.LOCAL iirc PigServer constructor accepts string ('local') or ExecType (ExecType.LOCAL). If its a string it internally converts to corresponding ExecType. - Prasanth_J ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/4670/#review7373 ----------------------------------------------------------- On 2012-04-30 04:05:03, Prasanth_J wrote: bq. bq. ----------------------------------------------------------- bq. This is an automatically generated e-mail. To reply, visit: bq. https://reviews.apache.org/r/4670/ bq. ----------------------------------------------------------- bq. bq. (Updated 2012-04-30 04:05:03) bq. bq. bq. Review request for pig and Dmitriy Ryaboy. bq. bq. bq. Summary bq. ------- bq. bq. This is a review board for https://issues.apache.org/jira/browse/PIG-2167 bq. bq. bq. This addresses bug PIG-2167. bq. https://issues.apache.org/jira/browse/PIG-2167 bq. bq. bq. Diffs bq. ----- bq. bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/optimizer/AllExpressionVisitor.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/optimizer/SchemaResetter.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/relational/LOCube.java PRE-CREATION bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/relational/LogicalRelationalNodesVisitor.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/visitor/ProjectStarExpander.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/AliasMasker.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/AstPrinter.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/AstValidator.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/LogicalPlanBuilder.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/LogicalPlanGenerator.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/QueryLexer.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/parser/QueryParser.g 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/parser/TestLexer.pig 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/parser/TestLogicalPlanGenerator.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/parser/TestParser.pig 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/parser/TestQueryLexer.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/parser/TestQueryParser.java 1325115 bq. http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestCubeOperator.java PRE-CREATION bq. bq. Diff: https://reviews.apache.org/r/4670/diff bq. bq. bq. Testing bq. ------- bq. bq. Unit tests: All passed bq. bq. Pre-commit tests: All passed bq. ant clean test-commit bq. bq. bq. Thanks, bq. bq. Prasanth_J bq. bq. > CUBE operation in Pig > --------------------- > > Key: PIG-2167 > URL: https://issues.apache.org/jira/browse/PIG-2167 > Project: Pig > Issue Type: New Feature > Reporter: Dmitriy V. Ryaboy > Assignee: Dmitriy V. Ryaboy > Labels: gsoc2012, mentor > Attachments: PIG-2167.1.patch, PIG-2167.2.patch, > Pig-Cubing-Performance.png > > > Computing aggregates over a cube of several dimensions is a common operation > in data warehousing. > The standard SQL syntax is "GROUP relation BY dim1, dim2, dim3 WITH CUBE" -- > which in addition to all dim1-2-3, produces aggregations for just dim1, just > dim1 and dim2, etc. NULL is generally used to represent "all". > A presentation by Arnab Nandi describes how one might implement efficient > cubing in Map-Reduce here: http://pdf.cx/44wrk > We can start with the naive solution which only works for algebraic measures, > and work up from there. > This is a candidate project for Google summer of code 2012. More information > about the program can be found at > https://cwiki.apache.org/confluence/display/PIG/GSoc2012 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira