[Groonga-commit] groonga/groonga at becc511 [master] select: support "match_columns _key" without index

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed Nov 15 11:36:08 JST 2017


Kouhei Sutou	2017-11-15 11:36:08 +0900 (Wed, 15 Nov 2017)

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

  Message:
    select: support "match_columns _key" without index

  Added files:
    test/command/suite/select/match_columns/no_index/one_key.expected
    test/command/suite/select/match_columns/no_index/one_key.test
  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -0)
===================================================================
--- lib/db.c    2017-11-15 10:22:30 +0900 (6f82641dd)
+++ lib/db.c    2017-11-15 11:36:08 +0900 (f588aa8c8)
@@ -7760,6 +7760,7 @@ grn_obj_get_value_expr(grn_ctx *ctx, grn_obj *expr, grn_id id, grn_obj *value)
   }
 
   switch (code->value->header.type) {
+  case GRN_ACCESSOR :
   case GRN_COLUMN_VAR_SIZE :
   case GRN_COLUMN_FIX_SIZE :
     grn_obj_get_value(ctx, code->value, id, value);

  Added: test/command/suite/select/match_columns/no_index/one_key.expected (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/match_columns/no_index/one_key.expected    2017-11-15 11:36:08 +0900 (6d7e9019b)
@@ -0,0 +1,9 @@
+table_create Memos TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"_key": "Groonga"}
+]
+[[0,0.0,0.0],1]
+select Memos --match_columns _key --query Groonga
+[[0,0.0,0.0],[[[1],[["_id","UInt32"],["_key","ShortText"]],[1,"Groonga"]]]]

  Added: test/command/suite/select/match_columns/no_index/one_key.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/match_columns/no_index/one_key.test    2017-11-15 11:36:08 +0900 (05a8cc6a6)
@@ -0,0 +1,8 @@
+table_create Memos TABLE_HASH_KEY ShortText
+
+load --table Memos
+[
+{"_key": "Groonga"}
+]
+
+select Memos --match_columns _key --query Groonga
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171115/d6270c3a/attachment.htm 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る