teiid SVN: r4619 - branches/7.7.x/engine/src/main/java/org/teiid/query/processor/relational.
by teiid-commits@lists.jboss.org
Author: jolee
Date: 2013-12-23 14:43:47 -0500 (Mon, 23 Dec 2013)
New Revision: 4619
Modified:
branches/7.7.x/engine/src/main/java/org/teiid/query/processor/relational/EnhancedSortMergeJoinStrategy.java
Log:
TEIID-1956: WHERE clause throws org.teiid.jdbc.TeiidSQLException: Index: 2, Size: 1 (missed 2nd commit)
Modified: branches/7.7.x/engine/src/main/java/org/teiid/query/processor/relational/EnhancedSortMergeJoinStrategy.java
===================================================================
--- branches/7.7.x/engine/src/main/java/org/teiid/query/processor/relational/EnhancedSortMergeJoinStrategy.java 2013-12-16 14:07:10 UTC (rev 4618)
+++ branches/7.7.x/engine/src/main/java/org/teiid/query/processor/relational/EnhancedSortMergeJoinStrategy.java 2013-12-23 19:43:47 UTC (rev 4619)
@@ -212,7 +212,7 @@
}
its.closeSource();
this.reverseIndexes = new int[elements.size()];
- for (int i = 0; i < reverseIndexes.length; i++) {
+ for (int i = 0; i < reorderedSortIndex.length; i++) {
int oldIndex = reorderedSortIndex[i];
this.reverseIndexes[oldIndex] = i + (!state.isDistinct()&&i>=keyLength-1?1:0);
}