asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangs...@apache.org
Subject [1/4] asterixdb git commit: ASTERIXDB-1186: fixed a composite primary index search issue.
Date Thu, 25 Aug 2016 20:00:08 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master fdc71eb74 -> 52a9d992d


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/52a9d992/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv19/cross-dv19.3.ast
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv19/cross-dv19.3.ast
b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv19/cross-dv19.3.ast
index c951c62..fc3acc8 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv19/cross-dv19.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv19/cross-dv19.3.ast
@@ -36,3 +36,20 @@ Where
       LiteralExpr [STRING] [TwitterData]
     ]
   ]
+Orderby
+  FieldAccessor [
+    Variable [ Name=$l ]
+    Field=DataverseName
+  ]
+  ASC
+  FieldAccessor [
+    Variable [ Name=$l ]
+    Field=DatasetName
+  ]
+  ASC
+  FieldAccessor [
+    Variable [ Name=$l ]
+    Field=DatatypeDataverseName
+  ]
+  ASC
+

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/52a9d992/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
index e5710bc..bf1893a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -2739,6 +2739,11 @@
       </compilation-unit>
     </test-case>
     <test-case FilePath="index-selection">
+      <compilation-unit name="btree-index-composite-key-02">
+        <output-dir compare="Text">btree-index-composite-key-02</output-dir>
+      </compilation-unit>
+    </test-case>
+    <test-case FilePath="index-selection">
       <compilation-unit name="btree-index-composite-key-mixed-intervals">
         <output-dir compare="Text">btree-index-composite-key-mixed-intervals</output-dir>
       </compilation-unit>

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/52a9d992/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlIndex.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlIndex.java
b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlIndex.java
index 863dece..2751228 100644
--- a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlIndex.java
+++ b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlIndex.java
@@ -32,11 +32,11 @@ public class AqlIndex implements IDataSourceIndex<String, AqlSourceId>
{
 
     // Every transactions needs to work with its own instance of an
     // AqlMetadataProvider.
-    public AqlIndex(Index index, String dataverse, String dataset, AqlMetadataProvider metadatProvider)
{
+    public AqlIndex(Index index, String dataverse, String dataset, AqlMetadataProvider metadataProvider)
{
         this.index = index;
         this.dataset = dataset;
         this.dataverse = dataverse;
-        this.metadataProvider = metadatProvider;
+        this.metadataProvider = metadataProvider;
     }
 
     // TODO: Maybe Index can directly implement IDataSourceIndex<String, AqlSourceId>
@@ -55,4 +55,7 @@ public class AqlIndex implements IDataSourceIndex<String, AqlSourceId>
{
         return index.getIndexName();
     }
 
+    public Index getIndex() {
+        return index;
+    }
 }


Mime
View raw message