Kouhei Sutou
null+****@clear*****
Mon Oct 14 22:54:49 JST 2013
Kouhei Sutou 2013-10-14 22:54:49 +0900 (Mon, 14 Oct 2013) New Revision: c2e73843545a20d43bd429dba5c3b1daec74b651 https://github.com/groonga/groonga/commit/c2e73843545a20d43bd429dba5c3b1daec74b651 Message: test: remove table plugin tests because the plugin is deprecated Removed files: test/command/suite/table/add.expected test/command/suite/table/add.test test/command/suite/table/filter.expected test/command/suite/table/filter.test test/command/suite/table/filter_by_script.expected test/command/suite/table/filter_by_script.test test/command/suite/table/get/exist.expected test/command/suite/table/get/exist.test test/command/suite/table/get/not_exist.expected test/command/suite/table/get/not_exist.test test/command/suite/table/group.expected test/command/suite/table/group.test test/command/suite/table/match.expected test/command/suite/table/match.test Deleted: test/command/suite/table/add.expected (+0 -87) 100644 =================================================================== --- test/command/suite/table/add.expected 2013-10-14 22:44:03 +0900 (dd172f0) +++ /dev/null @@ -1,87 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Shops TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Shops name COLUMN_SCALAR ShortText -[[0,0.0,0.0],true] -column_create Shops tags COLUMN_VECTOR ShortText -[[0,0.0,0.0],true] -table_create Events TABLE_NO_KEY -[[0,0.0,0.0],true] -column_create Events value COLUMN_SCALAR ShortText -[[0,0.0,0.0],true] -add Shops '{"_key":"kuriko-an","tags":["たいやき","養殖"]}' -[[0,0.0,0.0],true] -select Shops -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - [ - 1 - ], - [ - [ - "_id", - "UInt32" - ], - [ - "_key", - "ShortText" - ], - [ - "name", - "ShortText" - ], - [ - "tags", - "ShortText" - ] - ], - [ - 1, - "kuriko-an", - "", - [ - "たいやき", - "養殖" - ] - ] - ] - ] -] -add Events '{"value":"田無店新規開店!"}' -[[0,0.0,0.0],true] -select Events -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - [ - 1 - ], - [ - [ - "_id", - "UInt32" - ], - [ - "value", - "ShortText" - ] - ], - [ - 1, - "田無店新規開店!" - ] - ] - ] -] Deleted: test/command/suite/table/add.test (+0 -13) 100644 =================================================================== --- test/command/suite/table/add.test 2013-10-14 22:44:03 +0900 (60beb87) +++ /dev/null @@ -1,13 +0,0 @@ -register table/table -table_create Shops TABLE_PAT_KEY ShortText -column_create Shops name COLUMN_SCALAR ShortText -column_create Shops tags COLUMN_VECTOR ShortText - -table_create Events TABLE_NO_KEY -column_create Events value COLUMN_SCALAR ShortText - -add Shops '{"_key":"kuriko-an","tags":["たいやき","養殖"]}' -select Shops - -add Events '{"value":"田無店新規開店!"}' -select Events Deleted: test/command/suite/table/filter.expected (+0 -71) 100644 =================================================================== --- test/command/suite/table/filter.expected 2013-10-14 22:44:03 +0900 (9afe66e) +++ /dev/null @@ -1,71 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Shops TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -table_create Tags TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Shops tags COLUMN_VECTOR Tags -[[0,0.0,0.0],true] -column_create Tags shops_tag COLUMN_INDEX Shops tags -[[0,0.0,0.0],true] -column_create Shops budget COLUMN_SCALAR UInt32 -[[0,0.0,0.0],true] -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"],"budget":180}' -[[0,0.0,0.0],true] -add Shops '{"_key":"なか一","tags":["季節料理"],"budget":800}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"],"budget":750}' -[[0,0.0,0.0],true] -add Shops '{"_key":"DRAGON飯店","tags":["中華"],"budget":600}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚浜","tags":["回転寿司"],"budget":600}' -[[0,0.0,0.0],true] -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"],"budget":650}' -[[0,0.0,0.0],true] -add Shops '{"_key":"維新","tags":["麺や"],"budget":800}' -[[0,0.0,0.0],true] -add Shops '{"_key":"ひづめ","tags":["とんかつ"],"budget":900}' -[[0,0.0,0.0],true] -add Shops '{"_key":"和互","tags":["魚"],"budget":1000}' -[[0,0.0,0.0],true] -filter Shops budget < 700 -[[0,0.0,0.0],2147483649] -output 2147483649 _key,budget -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 4 - ], - [ - [ - "_key", - "ShortText" - ], - [ - "budget", - "UInt32" - ] - ], - [ - "くりこあん", - 180 - ], - [ - "DRAGON飯店", - 600 - ], - [ - "魚浜", - 600 - ], - [ - "beanDaisy", - 650 - ] - ] -] Deleted: test/command/suite/table/filter.test (+0 -18) 100644 =================================================================== --- test/command/suite/table/filter.test 2013-10-14 22:44:03 +0900 (569780b) +++ /dev/null @@ -1,18 +0,0 @@ -register table/table -table_create Shops TABLE_PAT_KEY ShortText -table_create Tags TABLE_PAT_KEY ShortText -column_create Shops tags COLUMN_VECTOR Tags -column_create Tags shops_tag COLUMN_INDEX Shops tags -column_create Shops budget COLUMN_SCALAR UInt32 - -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"],"budget":180}' -add Shops '{"_key":"なか一","tags":["季節料理"],"budget":800}' -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"],"budget":750}' -add Shops '{"_key":"DRAGON飯店","tags":["中華"],"budget":600}' -add Shops '{"_key":"魚浜","tags":["回転寿司"],"budget":600}' -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"],"budget":650}' -add Shops '{"_key":"維新","tags":["麺や"],"budget":800}' -add Shops '{"_key":"ひづめ","tags":["とんかつ"],"budget":900}' -add Shops '{"_key":"和互","tags":["魚"],"budget":1000}' -filter Shops budget < 700 -output 2147483649 _key,budget Deleted: test/command/suite/table/filter_by_script.expected (+0 -97) 100644 =================================================================== --- test/command/suite/table/filter_by_script.expected 2013-10-14 22:44:03 +0900 (938ea99) +++ /dev/null @@ -1,97 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Shops TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -table_create Tags TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Shops tags COLUMN_VECTOR Tags -[[0,0.0,0.0],true] -column_create Tags shops_tag COLUMN_INDEX Shops tags -[[0,0.0,0.0],true] -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"なか一","tags":["季節料理"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"DRAGON飯店","tags":["中華"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚浜","tags":["回転寿司"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"維新","tags":["麺や"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"ひづめ","tags":["とんかつ"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"和互","tags":["魚"]}' -[[0,0.0,0.0],true] -filter_by_script Shops 'tags @ "季節料理"' -[[0,0.0,0.0],2147483650] -output 2147483650 _id,_key -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 2 - ], - [ - [ - "_id", - "UInt32" - ], - [ - "_key", - "ShortText" - ] - ], - [ - 2, - "なか一" - ], - [ - 3, - "魚寅食堂" - ] - ] -] -output 2147483650 _id,tags -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 2 - ], - [ - [ - "_id", - "UInt32" - ], - [ - "tags", - "Tags" - ] - ], - [ - 2, - [ - "季節料理" - ] - ], - [ - 3, - [ - "漁師", - "季節料理" - ] - ] - ] -] Deleted: test/command/suite/table/filter_by_script.test (+0 -18) 100644 =================================================================== --- test/command/suite/table/filter_by_script.test 2013-10-14 22:44:03 +0900 (a790e5b) +++ /dev/null @@ -1,18 +0,0 @@ -register table/table -table_create Shops TABLE_PAT_KEY ShortText -table_create Tags TABLE_PAT_KEY ShortText -column_create Shops tags COLUMN_VECTOR Tags -column_create Tags shops_tag COLUMN_INDEX Shops tags - -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"]}' -add Shops '{"_key":"なか一","tags":["季節料理"]}' -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"]}' -add Shops '{"_key":"DRAGON飯店","tags":["中華"]}' -add Shops '{"_key":"魚浜","tags":["回転寿司"]}' -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"]}' -add Shops '{"_key":"維新","tags":["麺や"]}' -add Shops '{"_key":"ひづめ","tags":["とんかつ"]}' -add Shops '{"_key":"和互","tags":["魚"]}' -filter_by_script Shops 'tags @ "季節料理"' -output 2147483650 _id,_key -output 2147483650 _id,tags Deleted: test/command/suite/table/get/exist.expected (+0 -45) 100644 =================================================================== --- test/command/suite/table/get/exist.expected 2013-10-14 22:44:03 +0900 (0d3f74e) +++ /dev/null @@ -1,45 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Diaries TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Diaries title COLUMN_SCALAR ShortText -[[0,0.0,0.0],true] -column_create Diaries tags COLUMN_VECTOR ShortText -[[0,0.0,0.0],true] -load --table Diaries -[ -{"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]} -] -[[0,0.0,0.0],1] -get Diaries '2012-08-14' 'title, _key, tags' -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - [ - "title", - "ShortText" - ], - [ - "_key", - "ShortText" - ], - [ - "tags", - "ShortText" - ] - ], - [ - "'get' command is moved!", - "2012-08-14", - [ - "groonga", - "development" - ] - ] - ] -] Deleted: test/command/suite/table/get/exist.test (+0 -10) 100644 =================================================================== --- test/command/suite/table/get/exist.test 2013-10-14 22:44:03 +0900 (6af0c43) +++ /dev/null @@ -1,10 +0,0 @@ -register table/table -table_create Diaries TABLE_PAT_KEY ShortText -column_create Diaries title COLUMN_SCALAR ShortText -column_create Diaries tags COLUMN_VECTOR ShortText - -load --table Diaries -[ -{"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]} -] -get Diaries '2012-08-14' 'title, _key, tags' Deleted: test/command/suite/table/get/not_exist.expected (+0 -25) 100644 =================================================================== --- test/command/suite/table/get/not_exist.expected 2013-10-14 22:44:03 +0900 (34e1629) +++ /dev/null @@ -1,25 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Diaries TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Diaries title COLUMN_SCALAR ShortText -[[0,0.0,0.0],true] -column_create Diaries tags COLUMN_VECTOR ShortText -[[0,0.0,0.0],true] -load --table Diaries -[ -{"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]} -] -[[0,0.0,0.0],1] -get Diaries 'nonexistent' -[ - [ - [ - -22, - 0.0, - 0.0 - ], - "[table][get] nonexistent key: <nonexistent>: table: <Diaries>" - ] -] -#|e| [table][get] nonexistent key: <nonexistent>: table: <Diaries> Deleted: test/command/suite/table/get/not_exist.test (+0 -10) 100644 =================================================================== --- test/command/suite/table/get/not_exist.test 2013-10-14 22:44:03 +0900 (886a741) +++ /dev/null @@ -1,10 +0,0 @@ -register table/table -table_create Diaries TABLE_PAT_KEY ShortText -column_create Diaries title COLUMN_SCALAR ShortText -column_create Diaries tags COLUMN_VECTOR ShortText - -load --table Diaries -[ -{"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]} -] -get Diaries 'nonexistent' Deleted: test/command/suite/table/group.expected (+0 -236) 100644 =================================================================== --- test/command/suite/table/group.expected 2013-10-14 22:44:03 +0900 (db68290) +++ /dev/null @@ -1,236 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Shops TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -table_create Tags TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Shops tags COLUMN_VECTOR Tags -[[0,0.0,0.0],true] -column_create Tags shops_tag COLUMN_INDEX Shops tags -[[0,0.0,0.0],true] -column_create Shops budget COLUMN_SCALAR UInt32 -[[0,0.0,0.0],true] -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"],"budget":180}' -[[0,0.0,0.0],true] -add Shops '{"_key":"なか一","tags":["季節料理"],"budget":800}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"],"budget":750}' -[[0,0.0,0.0],true] -add Shops '{"_key":"DRAGON飯店","tags":["中華"],"budget":600}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚浜","tags":["回転寿司"],"budget":600}' -[[0,0.0,0.0],true] -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"],"budget":650}' -[[0,0.0,0.0],true] -add Shops '{"_key":"維新","tags":["麺や"],"budget":800}' -[[0,0.0,0.0],true] -add Shops '{"_key":"ひづめ","tags":["とんかつ"],"budget":900}' -[[0,0.0,0.0],true] -add Shops '{"_key":"和互","tags":["魚"],"budget":1000}' -[[0,0.0,0.0],true] -group Shops tags -[[0,0.0,0.0],2147483649] -output 2147483649 _key,_nsubrecs -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 11 - ], - [ - [ - "_key", - "ShortText" - ], - [ - "_nsubrecs", - "Int32" - ] - ], - [ - "中華", - 1 - ], - [ - "caffe", - 1 - ], - [ - "カプチーノ", - 1 - ], - [ - "たいやき", - 1 - ], - [ - "養殖", - 1 - ], - [ - "季節料理", - 2 - ], - [ - "とんかつ", - 1 - ], - [ - "魚", - 1 - ], - [ - "麺や", - 1 - ], - [ - "漁師", - 1 - ] - ] -] -group Shops budget -[[0,0.0,0.0],2147483650] -output 2147483650 _key,_nsubrecs -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 7 - ], - [ - [ - "_key", - "UInt32" - ], - [ - "_nsubrecs", - "Int32" - ] - ], - [ - 600, - 2 - ], - [ - 650, - 1 - ], - [ - 180, - 1 - ], - [ - 800, - 2 - ], - [ - 900, - 1 - ], - [ - 1000, - 1 - ], - [ - 750, - 1 - ] - ] -] -filter_by_script Shops 'budget > 100' -[[0,0.0,0.0],2147483652] -group 2147483652 budget --range_gap 100 -[[0,0.0,0.0],2147483651] -output 2147483651 _key,_nsubrecs -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 6 - ], - [ - [ - "_key", - "UInt32" - ], - [ - "_nsubrecs", - "Int32" - ] - ], - [ - 600, - 3 - ], - [ - 100, - 1 - ], - [ - 800, - 2 - ], - [ - 900, - 1 - ], - [ - 1000, - 1 - ], - [ - 700, - 1 - ] - ] -] -group 2147483652 budget --range_gap 500 -[[0,0.0,0.0],2147483653] -output 2147483653 _key,_nsubrecs -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 3 - ], - [ - [ - "_key", - "UInt32" - ], - [ - "_nsubrecs", - "Int32" - ] - ], - [ - 500, - 7 - ], - [ - 0, - 1 - ], - [ - 1000, - 1 - ] - ] -] Deleted: test/command/suite/table/group.test (+0 -25) 100644 =================================================================== --- test/command/suite/table/group.test 2013-10-14 22:44:03 +0900 (4fa8690) +++ /dev/null @@ -1,25 +0,0 @@ -register table/table -table_create Shops TABLE_PAT_KEY ShortText -table_create Tags TABLE_PAT_KEY ShortText -column_create Shops tags COLUMN_VECTOR Tags -column_create Tags shops_tag COLUMN_INDEX Shops tags -column_create Shops budget COLUMN_SCALAR UInt32 - -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"],"budget":180}' -add Shops '{"_key":"なか一","tags":["季節料理"],"budget":800}' -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"],"budget":750}' -add Shops '{"_key":"DRAGON飯店","tags":["中華"],"budget":600}' -add Shops '{"_key":"魚浜","tags":["回転寿司"],"budget":600}' -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"],"budget":650}' -add Shops '{"_key":"維新","tags":["麺や"],"budget":800}' -add Shops '{"_key":"ひづめ","tags":["とんかつ"],"budget":900}' -add Shops '{"_key":"和互","tags":["魚"],"budget":1000}' -group Shops tags -output 2147483649 _key,_nsubrecs -group Shops budget -output 2147483650 _key,_nsubrecs -filter_by_script Shops 'budget > 100' -group 2147483652 budget --range_gap 100 -output 2147483651 _key,_nsubrecs -group 2147483652 budget --range_gap 500 -output 2147483653 _key,_nsubrecs Deleted: test/command/suite/table/match.expected (+0 -72) 100644 =================================================================== --- test/command/suite/table/match.expected 2013-10-14 22:44:03 +0900 (681dfbd) +++ /dev/null @@ -1,72 +0,0 @@ -register table/table -[[0,0.0,0.0],true] -table_create Shops TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -table_create Tags TABLE_PAT_KEY ShortText -[[0,0.0,0.0],true] -column_create Shops tags COLUMN_VECTOR Tags -[[0,0.0,0.0],true] -column_create Tags shops_tag COLUMN_INDEX Shops tags -[[0,0.0,0.0],true] -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"なか一","tags":["季節料理"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"DRAGON飯店","tags":["中華"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"魚浜","tags":["回転寿司"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"維新","tags":["麺や"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"ひづめ","tags":["とんかつ"]}' -[[0,0.0,0.0],true] -add Shops '{"_key":"和互","tags":["魚"]}' -[[0,0.0,0.0],true] -match Shops tags "季節料理" -[[0,0.0,0.0],2147483651] -output 2147483651 _id,_key,tags -[ - [ - 0, - 0.0, - 0.0 - ], - [ - [ - 2 - ], - [ - [ - "_id", - "UInt32" - ], - [ - "_key", - "ShortText" - ], - [ - "tags", - "Tags" - ] - ], - [ - 2, - "なか一", - [ - "季節料理" - ] - ], - [ - 3, - "魚寅食堂", - [ - "漁師", - "季節料理" - ] - ] - ] -] Deleted: test/command/suite/table/match.test (+0 -17) 100644 =================================================================== --- test/command/suite/table/match.test 2013-10-14 22:44:03 +0900 (7f6ed93) +++ /dev/null @@ -1,17 +0,0 @@ -register table/table -table_create Shops TABLE_PAT_KEY ShortText -table_create Tags TABLE_PAT_KEY ShortText -column_create Shops tags COLUMN_VECTOR Tags -column_create Tags shops_tag COLUMN_INDEX Shops tags - -add Shops '{"_key":"くりこあん","tags":["たいやき","養殖"]}' -add Shops '{"_key":"なか一","tags":["季節料理"]}' -add Shops '{"_key":"魚寅食堂","tags":["漁師","季節料理"]}' -add Shops '{"_key":"DRAGON飯店","tags":["中華"]}' -add Shops '{"_key":"魚浜","tags":["回転寿司"]}' -add Shops '{"_key":"beanDaisy","tags":["caffe","カプチーノ"]}' -add Shops '{"_key":"維新","tags":["麺や"]}' -add Shops '{"_key":"ひづめ","tags":["とんかつ"]}' -add Shops '{"_key":"和互","tags":["魚"]}' -match Shops tags "季節料理" -output 2147483651 _id,_key,tags -------------- next part -------------- HTML����������������������������...Download