[Groonga-commit] groonga/groonga at b624579 [master] test: add a test to detect data loss by reindex

Back to archive index

Susumu Yata null+****@clear*****
Tue Apr 11 18:17:39 JST 2017


Susumu Yata	2017-04-11 18:17:39 +0900 (Tue, 11 Apr 2017)

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

  Message:
    test: add a test to detect data loss by reindex
    
    GitHub: #646

  Added files:
    test/command/suite/reindex/tags_table.expected
    test/command/suite/reindex/tags_table.test

  Added: test/command/suite/reindex/tags_table.expected (+19 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/reindex/tags_table.expected    2017-04-11 18:17:39 +0900 (ed7b508)
@@ -0,0 +1,19 @@
+table_create Tags TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+table_create Memos TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Memos tags COLUMN_VECTOR Tags
+[[0,0.0,0.0],true]
+column_create Tags memos_tags COLUMN_INDEX Memos tags
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"tags": ["job", "asap"]}
+]
+[[0,0.0,0.0],1]
+select Tags --output_columns _key --sortby _key
+[[0,0.0,0.0],[[[2],[["_key","ShortText"]],["asap"],["job"]]]]
+reindex Tags
+[[0,0.0,0.0],true]
+select Tags --output_columns _key --sortby _key
+[[0,0.0,0.0],[[[2],[["_key","ShortText"]],["asap"],["job"]]]]

  Added: test/command/suite/reindex/tags_table.test (+17 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/reindex/tags_table.test    2017-04-11 18:17:39 +0900 (5fc9a23)
@@ -0,0 +1,17 @@
+table_create Tags TABLE_HASH_KEY ShortText
+
+table_create Memos TABLE_NO_KEY
+column_create Memos tags COLUMN_VECTOR Tags
+
+column_create Tags memos_tags COLUMN_INDEX Memos tags
+
+load --table Memos
+[
+{"tags": ["job", "asap"]}
+]
+
+select Tags --output_columns _key --sortby _key
+
+reindex Tags
+
+select Tags --output_columns _key --sortby _key
-------------- next part --------------
HTML����������������������������...
下載 



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