[ https://issues.apache.org/jira/browse/MRQL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852915#comment-15852915 ]
Hudson commented on MRQL-102: ----------------------------- SUCCESS: Integrated in Jenkins build mrql-master-snapshot #48 (See [https://builds.apache.org/job/mrql-master-snapshot/48/]) [MRQL-102] A suspicious use of an incrementer in a for loop (fegaras: [https://git-wip-us.apache.org/repos/asf?p=incubator-mrql.git&a=commit&h=e6cdaf358bd11df153596bced091bd9dde3f4191]) * (edit) core/src/main/java/org/apache/mrql/MapReduceAlgebra.java > A suspicious use of an incrementer in a for loop > ------------------------------------------------ > > Key: MRQL-102 > URL: https://issues.apache.org/jira/browse/MRQL-102 > Project: MRQL > Issue Type: Bug > Reporter: JC > Priority: Trivial > > In a recent github snapshot, I've found a suspicious use of an incrementer in > a for loop. > core/src/main/java/org/apache/mrql/MapReduceAlgebra.java > {code:java} > 653 for ( int i = 0; i < num; i++ ) { > 654 Tuple d = (Tuple)loop.eval(s); > 655 for ( int j = 0; j < d.size(); j++ ) > 656 if (d.get(j) instanceof Bag) { > 657 s.set(j,d.get(i)); > 658 ((Bag)d.get(j)).materialize(); > 659 } else if (d.get(j) instanceof MR_dataset) { > 660 DataSet ds = ((MR_dataset)d.get(j)).dataset(); > 661 s.set(j,Plan.collect(ds)); > 662 } else throw new Error("Wrong loop"); > 663 }; > {code} > In Line 657, could get(i ) be get(j)? Since I don't have domain knowledge > about this project, I'd like to report this just in case. -- This message was sent by Atlassian JIRA (v6.3.15#6346)