[Groonga-commit] groonga/groonga at 10d7e24 [master] test: modify to occur error

Back to archive index

Yasuhiro Horimoto null+****@clear*****
Wed Jun 20 16:04:41 JST 2018


Yasuhiro Horimoto	2018-06-20 16:04:41 +0900 (Wed, 20 Jun 2018)

  New Revision: 10d7e2401bb2844ea28284d2b3e47f04197b2256
  https://github.com/groonga/groonga/commit/10d7e2401bb2844ea28284d2b3e47f04197b2256

  Merged 8a52f23: Merge pull request #850 from komainu8/add_check_exist_with_section_flag

  Message:
    test: modify to occur error
    
    Because begin to occur error when a full-text search for vector column
    if we don't set "WITH_SECTION" flag.

  Modified files:
    test/command/suite/load/index/offline/vector/text_without_section.expected
    test/command/suite/load/index/online/vector/text_without_section.expected

  Modified: test/command/suite/load/index/offline/vector/text_without_section.expected (+13 -8)
===================================================================
--- test/command/suite/load/index/offline/vector/text_without_section.expected    2018-06-20 13:45:43 +0900 (df5fa7961)
+++ test/command/suite/load/index/offline/vector/text_without_section.expected    2018-06-20 16:04:41 +0900 (08c94ac34)
@@ -12,7 +12,18 @@ load --table Docs
 table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
 [[0,0.0,0.0],true]
 column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION Docs sentences
-[[0,0.0,0.0],true]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sent"
+  ],
+  false
+]
+#|e| grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sentences>
 select Words   --limit -1   --sort_keys _key   --output_columns '_key, index_column_source_records("docs_sentences")'
 [
   [
@@ -23,7 +34,7 @@ select Words   --limit -1   --sort_keys _key   --output_columns '_key, index_col
   [
     [
       [
-        1
+        0
       ],
       [
         [
@@ -34,12 +45,6 @@ select Words   --limit -1   --sort_keys _key   --output_columns '_key, index_col
           "index_column_source_records",
           null
         ]
-      ],
-      [
-        "-",
-        [
-          1
-        ]
       ]
     ]
   ]

  Modified: test/command/suite/load/index/online/vector/text_without_section.expected (+13 -8)
===================================================================
--- test/command/suite/load/index/online/vector/text_without_section.expected    2018-06-20 13:45:43 +0900 (125106f96)
+++ test/command/suite/load/index/online/vector/text_without_section.expected    2018-06-20 16:04:41 +0900 (6fc38919f)
@@ -7,7 +7,18 @@ column_create Docs sentences COLUMN_VECTOR Text
 table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
 [[0,0.0,0.0],true]
 column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION Docs sentences
-[[0,0.0,0.0],true]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sent"
+  ],
+  false
+]
+#|e| grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sentences>
 load --table Docs
 [
 {"sentences": ["-", "-", "-"]}
@@ -23,7 +34,7 @@ select Words   --limit -1   --sort_keys _key   --output_columns '_key, index_col
   [
     [
       [
-        1
+        0
       ],
       [
         [
@@ -34,12 +45,6 @@ select Words   --limit -1   --sort_keys _key   --output_columns '_key, index_col
           "index_column_source_records",
           null
         ]
-      ],
-      [
-        "-",
-        [
-          1
-        ]
       ]
     ]
   ]
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180620/9cf24ec2/attachment-0001.htm 



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