Author: shawkins
Date: 2012-09-10 21:31:20 -0400 (Mon, 10 Sep 2012)
New Revision: 4425
Modified:
trunk/engine/src/main/java/org/teiid/query/tempdata/IndexInfo.java
Log:
TEIID-2197 fix for ordering with an in predicate
Modified: trunk/engine/src/main/java/org/teiid/query/tempdata/IndexInfo.java
===================================================================
--- trunk/engine/src/main/java/org/teiid/query/tempdata/IndexInfo.java 2012-09-11 01:26:23
UTC (rev 4424)
+++ trunk/engine/src/main/java/org/teiid/query/tempdata/IndexInfo.java 2012-09-11 01:31:20
UTC (rev 4425)
@@ -312,7 +312,9 @@
}
if (!valueSet.isEmpty()) {
LogManager.logDetail(LogConstants.CTX_DQP, "Using index value set");
//$NON-NLS-1$
- sortValueSet(direction);
+ if (ordering != null) {
+ sortValueSet(direction);
+ }
CollectionTupleSource cts = new CollectionTupleSource(valueSet.iterator());
return new TupleBrowser(this.table.getTree(), cts, direction);
}
Show replies by date