Kouhei Sutou
null+****@clear*****
Wed May 4 20:15:37 JST 2016
Kouhei Sutou 2016-05-04 20:15:37 +0900 (Wed, 04 May 2016) New Revision: 492940cbf8769908d46465a8164ff71544c26ad1 https://github.com/groonga/groonga/commit/492940cbf8769908d46465a8164ff71544c26ad1 Message: test select: add a test for outputting referenced vector column Added files: test/command/suite/select/output_columns/vector/reference/itself/empty.expected test/command/suite/select/output_columns/vector/reference/itself/empty.test Added: test/command/suite/select/output_columns/vector/reference/itself/empty.expected (+56 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/output_columns/vector/reference/itself/empty.expected 2016-05-04 20:15:37 +0900 (6a78740) @@ -0,0 +1,56 @@ +table_create Tags TABLE_PAT_KEY ShortText +[[0,0.0,0.0],true] +table_create Memos TABLE_HASH_KEY ShortText +[[0,0.0,0.0],true] +column_create Memos tags COLUMN_VECTOR Tags +[[0,0.0,0.0],true] +load --table Memos +[ +{"_key": "Rroonga", "tags": ["Groonga", "Ruby"]}, +{"_key": "Groonga", "tags": ["Groonga"]}, +{"_key": "Blank", "tags": [""]}, +{"_key": "Nothing"} +] +[[0,0.0,0.0],4] +select Memos --output_columns tags +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 4 + ], + [ + [ + "tags", + "Tags" + ] + ], + [ + [ + "Groonga", + "Ruby" + ] + ], + [ + [ + "Groonga" + ] + ], + [ + [ + "" + ] + ], + [ + [ + + ] + ] + ] + ] +] Added: test/command/suite/select/output_columns/vector/reference/itself/empty.test (+14 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/output_columns/vector/reference/itself/empty.test 2016-05-04 20:15:37 +0900 (831ed27) @@ -0,0 +1,14 @@ +table_create Tags TABLE_PAT_KEY ShortText + +table_create Memos TABLE_HASH_KEY ShortText +column_create Memos tags COLUMN_VECTOR Tags + +load --table Memos +[ +{"_key": "Rroonga", "tags": ["Groonga", "Ruby"]}, +{"_key": "Groonga", "tags": ["Groonga"]}, +{"_key": "Blank", "tags": [""]}, +{"_key": "Nothing"} +] + +select Memos --output_columns tags -------------- next part -------------- HTML����������������������������...下载