Kouhei Sutou
null+****@clear*****
Wed Nov 14 17:31:04 JST 2012
Kouhei Sutou 2012-11-14 17:31:04 +0900 (Wed, 14 Nov 2012) New Revision: 3503cdcc032e223f78cbe4fed6ada187d2ee39a0 https://github.com/groonga/groonga/commit/3503cdcc032e223f78cbe4fed6ada187d2ee39a0 Log: Add a test for offline index construction of _key Added files: test/command/suite/load/index/offline/key.expected test/command/suite/load/index/offline/key.test Added: test/command/suite/load/index/offline/key.expected (+58 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/offline/key.expected 2012-11-14 17:31:04 +0900 (fc8c5b3) @@ -0,0 +1,58 @@ +table_create Users TABLE_HASH_KEY ShortText +[[0,0.0,0.0],true] +load --table Users +[ +["_key"], +["Alice"], +["Bob"] +] +[[0,0.0,0.0],2] +table_create Names TABLE_PAT_KEY --key_type ShortText --default_tokenizer TokenBigramSplitSymbolAlpha +[[0,0.0,0.0],true] +column_create Names users_name COLUMN_INDEX|WITH_POSITION Users _key +[[0,0.0,0.0],true] +select Names --output_columns _key +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 8 + ], + [ + [ + "_key", + "ShortText" + ] + ], + [ + "Al" + ], + [ + "Bo" + ], + [ + "b" + ], + [ + "ce" + ], + [ + "e" + ], + [ + "ic" + ], + [ + "li" + ], + [ + "ob" + ] + ] + ] +] Added: test/command/suite/load/index/offline/key.test (+14 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/offline/key.test 2012-11-14 17:31:04 +0900 (b87d1d7) @@ -0,0 +1,14 @@ +table_create Users TABLE_HASH_KEY ShortText + +load --table Users +[ +["_key"], +["Alice"], +["Bob"] +] + +table_create Names TABLE_PAT_KEY --key_type ShortText \ + --default_tokenizer TokenBigramSplitSymbolAlpha +column_create Names users_name COLUMN_INDEX|WITH_POSITION Users _key + +select Names --output_columns _key -------------- next part -------------- HTML����������������������������... Download