[Groonga-commit] groonga/groonga [master] Add a test for pseudo match for non-index case

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 14 12:20:38 JST 2012


Kouhei Sutou	2012-12-14 12:20:38 +0900 (Fri, 14 Dec 2012)

  New Revision: f81dbdea084cb1d40ef25a234217c76131172e64
  https://github.com/groonga/groonga/commit/f81dbdea084cb1d40ef25a234217c76131172e64

  Log:
    Add a test for pseudo match for non-index case

  Added files:
    test/command/suite/select/query/match/no_index.expected
    test/command/suite/select/query/match/no_index.test

  Added: test/command/suite/select/query/match/no_index.expected (+44 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/query/match/no_index.expected    2012-12-14 12:20:38 +0900 (a9a60dd)
@@ -0,0 +1,44 @@
+table_create Users TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Users name COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+load --table Users
+[
+{"name": "Alice"},
+{"name": "Bob"},
+{"name": "Carlos"}
+]
+[[0,0.0,0.0],3]
+select Users --query name:@a
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        2
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "name",
+          "ShortText"
+        ]
+      ],
+      [
+        1,
+        "Alice"
+      ],
+      [
+        3,
+        "Carlos"
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/query/match/no_index.test (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/query/match/no_index.test    2012-12-14 12:20:38 +0900 (ae50977)
@@ -0,0 +1,11 @@
+table_create Users TABLE_NO_KEY
+column_create Users name COLUMN_SCALAR ShortText
+
+load --table Users
+[
+{"name": "Alice"},
+{"name": "Bob"},
+{"name": "Carlos"}
+]
+
+select Users --query name:@a
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index