summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RELEASE-NOTES.txt1
-rw-r--r--src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index fc21234..e8b8e8c 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -36,6 +36,7 @@ Carbonado change history
- Fixed query engine rule which sometimes favored index with incorrect ordering.
- Fixed replication repair bug which threw an IllegalStateException for insert
repair if only alternate keys were specified.
+- Fixed query descending sort order bug which produced ascending results.
1.1 to 1.1.1
-------------------------------
diff --git a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
index 25423ee..0599b00 100644
--- a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
+++ b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
@@ -367,6 +367,9 @@ public class IndexedQueryExecutor<S extends Storable> extends AbstractQueryExecu
String[] orderProperties = new String[mIdentityCount + 1];
for (i=0; i<orderProperties.length; i++) {
Direction dir = mIndex.getPropertyDirection(i);
+ if (dir == Direction.UNSPECIFIED) {
+ dir = Direction.ASCENDING;
+ }
if (mReverseOrder) {
dir = dir.reverse();
}