Skip to content

Commit

Permalink
test command: remove needless --command_version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 20, 2016
1 parent 5539c4a commit 6275a77
Show file tree
Hide file tree
Showing 162 changed files with 147 additions and 202 deletions.
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs
select Memos --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs
[
[
0,
Expand Down
Expand Up @@ -14,6 +14,5 @@ load --table Memos
]

select Memos \
--command_version 2 \
--drilldown[tag].keys tag,date \
--drilldown[tag].output_columns _key[0],_key[1],_nsubrecs
Expand Up @@ -20,7 +20,7 @@ load --table Memos
"tags": ["Groonga"]}
]
[[0,0.0,0.0],5]
select Memos --limit 0 --output_columns _id --command_version 2 --drilldown[vector].keys date,tags --drilldown[vector].output_columns _key[0],_key[1],_nsubrecs --drilldown[vector].sortby -_nsubrecs,_id
select Memos --limit 0 --output_columns _id --drilldown[vector].keys date,tags --drilldown[vector].output_columns _key[0],_key[1],_nsubrecs --drilldown[vector].sortby -_nsubrecs,_id
[
[
0,
Expand Down
Expand Up @@ -21,7 +21,6 @@ load --table Memos
select Memos \
--limit 0 \
--output_columns _id \
--command_version 2 \
--drilldown[vector].keys date,tags \
--drilldown[vector].output_columns _key[0],_key[1],_nsubrecs \
--drilldown[vector].sortby -_nsubrecs,_id
Expand Up @@ -22,7 +22,7 @@ load --table Memos
"tags": ["Groonga"]}
]
[[0,0.0,0.0],5]
select Memos --limit 0 --output_columns _id --command_version 2 --drilldown[vector].keys user,tags,date --drilldown[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs --drilldown[vector].sortby -_nsubrecs,_id
select Memos --limit 0 --output_columns _id --drilldown[vector].keys user,tags,date --drilldown[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs --drilldown[vector].sortby -_nsubrecs,_id
[
[
0,
Expand Down
Expand Up @@ -22,7 +22,6 @@ load --table Memos
select Memos \
--limit 0 \
--output_columns _id \
--command_version 2 \
--drilldown[vector].keys user,tags,date \
--drilldown[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs \
--drilldown[vector].sortby -_nsubrecs,_id
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --filter true --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs --drilldown[tag].sort_keys _value.tag._key,_value.date
select Memos --filter true --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs --drilldown[tag].sort_keys _value.tag._key,_value.date
[
[
0,
Expand Down
Expand Up @@ -14,7 +14,6 @@ load --table Memos
]

select Memos \
--command_version 2 \
--filter true \
--drilldown[tag].keys tag,date \
--drilldown[tag].output_columns _key[0],_key[1],_nsubrecs \
Expand Down
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --filter true --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs --drilldown[tag].sortby _value.tag._key,_value.date
select Memos --filter true --drilldown[tag].keys tag,date --drilldown[tag].output_columns _key[0],_key[1],_nsubrecs --drilldown[tag].sortby _value.tag._key,_value.date
[
[
0,
Expand Down
Expand Up @@ -14,7 +14,6 @@ load --table Memos
]

select Memos \
--command_version 2 \
--filter true \
--drilldown[tag].keys tag,date \
--drilldown[tag].output_columns _key[0],_key[1],_nsubrecs \
Expand Down
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs
select Memos --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs
[
[
0,
Expand Down
1 change: 0 additions & 1 deletion test/command/suite/select/drilldowns/keys/multiple.test
Expand Up @@ -14,6 +14,5 @@ load --table Memos
]

select Memos \
--command_version 2 \
--drilldowns[tag].keys tag,date \
--drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs
Expand Up @@ -20,7 +20,7 @@ load --table Memos
"tags": ["Groonga"]}
]
[[0,0.0,0.0],5]
select Memos --limit 0 --output_columns _id --command_version 2 --drilldowns[vector].keys date,tags --drilldowns[vector].output_columns _key[0],_key[1],_nsubrecs --drilldowns[vector].sortby -_nsubrecs,_id
select Memos --limit 0 --output_columns _id --drilldowns[vector].keys date,tags --drilldowns[vector].output_columns _key[0],_key[1],_nsubrecs --drilldowns[vector].sortby -_nsubrecs,_id
[
[
0,
Expand Down
Expand Up @@ -21,7 +21,6 @@ load --table Memos
select Memos \
--limit 0 \
--output_columns _id \
--command_version 2 \
--drilldowns[vector].keys date,tags \
--drilldowns[vector].output_columns _key[0],_key[1],_nsubrecs \
--drilldowns[vector].sortby -_nsubrecs,_id
2 changes: 1 addition & 1 deletion test/command/suite/select/drilldowns/keys/vector.expected
Expand Up @@ -22,7 +22,7 @@ load --table Memos
"tags": ["Groonga"]}
]
[[0,0.0,0.0],5]
select Memos --limit 0 --output_columns _id --command_version 2 --drilldowns[vector].keys user,tags,date --drilldowns[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs --drilldowns[vector].sortby -_nsubrecs,_id
select Memos --limit 0 --output_columns _id --drilldowns[vector].keys user,tags,date --drilldowns[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs --drilldowns[vector].sortby -_nsubrecs,_id
[
[
0,
Expand Down
1 change: 0 additions & 1 deletion test/command/suite/select/drilldowns/keys/vector.test
Expand Up @@ -22,7 +22,6 @@ load --table Memos
select Memos \
--limit 0 \
--output_columns _id \
--command_version 2 \
--drilldowns[vector].keys user,tags,date \
--drilldowns[vector].output_columns _key[0],_key[1],_key[2],_nsubrecs \
--drilldowns[vector].sortby -_nsubrecs,_id
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --filter true --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs --drilldowns[tag].sort_keys _value.tag._key,_value.date
select Memos --filter true --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs --drilldowns[tag].sort_keys _value.tag._key,_value.date
[
[
0,
Expand Down
Expand Up @@ -14,7 +14,6 @@ load --table Memos
]

select Memos \
--command_version 2 \
--filter true \
--drilldowns[tag].keys tag,date \
--drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs \
Expand Down
Expand Up @@ -15,7 +15,7 @@ load --table Memos
{"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
]
[[0,0.0,0.0],5]
select Memos --command_version 2 --filter true --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs --drilldowns[tag].sortby _value.tag._key,_value.date
select Memos --filter true --drilldowns[tag].keys tag,date --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs --drilldowns[tag].sortby _value.tag._key,_value.date
[
[
0,
Expand Down
Expand Up @@ -14,7 +14,6 @@ load --table Memos
]

select Memos \
--command_version 2 \
--filter true \
--drilldowns[tag].keys tag,date \
--drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs \
Expand Down
Expand Up @@ -7,7 +7,7 @@ load --table Values
{"value": -2147483648}
]
[[0,0.0,0.0],1]
select Values --output_columns 'value, value / -1' --command_version 2
select Values --output_columns 'value, value / -1'
[
[
0,
Expand Down
Expand Up @@ -7,5 +7,4 @@ load --table Values
]

select Values \
--output_columns 'value, value / -1' \
--command_version 2
--output_columns 'value, value / -1'
Expand Up @@ -7,7 +7,7 @@ load --table Values
{"value": -9223372036854775808}
]
[[0,0.0,0.0],1]
select Values --output_columns 'value, value / -1' --command_version 2
select Values --output_columns 'value, value / -1'
[
[
0,
Expand Down
Expand Up @@ -7,5 +7,4 @@ load --table Values
]

select Values \
--output_columns 'value, value / -1' \
--command_version 2
--output_columns 'value, value / -1'
Expand Up @@ -7,5 +7,5 @@ load --table Users
{"name": "Alice"}
]
[[0,0.0,0.0],1]
select Users --output_columns '_id, "not false" && 29 && name' --command_version 2
select Users --output_columns '_id, "not false" && 29 && name'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,"Alice"]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Users
]

select Users \
--output_columns '_id, "not false" && 29 && name' \
--command_version 2
--output_columns '_id, "not false" && 29 && name'
Expand Up @@ -6,5 +6,5 @@ load --table Records
[]
]
[[0,0.0,0.0],1]
select Records --output_columns '_id, false && "not false"' --command_version 2
select Records --output_columns '_id, false && "not false"'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,false]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Records
]

select Records \
--output_columns '_id, false && "not false"' \
--command_version 2
--output_columns '_id, false && "not false"'
Expand Up @@ -6,5 +6,5 @@ load --table Records
[]
]
[[0,0.0,0.0],1]
select Records --output_columns '_id, null && "not false"' --command_version 2
select Records --output_columns '_id, null && "not false"'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,false]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Records
]

select Records \
--output_columns '_id, null && "not false"' \
--command_version 2
--output_columns '_id, null && "not false"'
Expand Up @@ -6,5 +6,5 @@ load --table Records
[]
]
[[0,0.0,0.0],1]
select Records --output_columns '_id, false || false || false' --command_version 2
select Records --output_columns '_id, false || false || false'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,false]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Records
]

select Records \
--output_columns '_id, false || false || false' \
--command_version 2
--output_columns '_id, false || false || false'
Expand Up @@ -6,5 +6,5 @@ load --table Records
[]
]
[[0,0.0,0.0],1]
select Records --output_columns '_id, null || null || null' --command_version 2
select Records --output_columns '_id, null || null || null'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,false]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Records
]

select Records \
--output_columns '_id, null || null || null' \
--command_version 2
--output_columns '_id, null || null || null'
Expand Up @@ -7,5 +7,5 @@ load --table Users
{"name": "Alice"}
]
[[0,0.0,0.0],1]
select Users --output_columns '_id, null || name || "unknown"' --command_version 2
select Users --output_columns '_id, null || name || "unknown"'
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["","null"]],[1,"Alice"]]]]
Expand Up @@ -7,5 +7,4 @@ load --table Users
]

select Users \
--output_columns '_id, null || name || "unknown"' \
--command_version 2
--output_columns '_id, null || name || "unknown"'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>" )' --command_version 2
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>" )'
[
[
0,
Expand Down
2 changes: 1 addition & 1 deletion test/command/suite/select/function/highlight/default.test
Expand Up @@ -9,4 +9,4 @@ load --table Entries
select Entries --output_columns \
'highlight(body, \
"groonga", "<span class=\\"keyword1\\">", "</span>" \
)' --command_version 2
)'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "Mroonga is a MySQL storage engine based on Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "Groonga", "Mroonga", {"default_open_tag": "<span>", "default_close_tag": "</span>"} )' --command_version 2
select Entries --output_columns 'highlight(body, "Groonga", "Mroonga", {"default_open_tag": "<span>", "default_close_tag": "</span>"} )'
[
[
0,
Expand Down
Expand Up @@ -10,4 +10,4 @@ select Entries --output_columns \
'highlight(body, \
"Groonga", "Mroonga", \
{"default_open_tag": "<span>", "default_close_tag": "</span>"} \
)' --command_version 2
)'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"html_escape": true} )' --command_version 2
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"html_escape": true} )'
[
[
0,
Expand Down
Expand Up @@ -10,4 +10,4 @@ select Entries --output_columns \
'highlight(body, \
"groonga", "<span class=\\"keyword1\\">", "</span>", \
{"html_escape": true} \
)' --command_version 2
)'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": ""} )' --command_version 2
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": ""} )'
[
[
0,
Expand Down
Expand Up @@ -10,4 +10,4 @@ select Entries --output_columns \
'highlight(body, \
"groonga", "<span class=\\"keyword1\\">", "</span>", \
{"normalizer": ""} \
)' --command_version 2
)'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": "NormalizerAuto"} )' --command_version 2
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": "NormalizerAuto"} )'
[
[
0,
Expand Down
Expand Up @@ -10,4 +10,4 @@ select Entries --output_columns \
'highlight(body, \
"groonga", "<span class=\\"keyword1\\">", "</span>", \
{"normalizer": "NormalizerAuto"} \
)' --command_version 2
)'
Expand Up @@ -7,7 +7,7 @@ load --table Entries
{"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight(body, "Groonga", "<span class=\\"keyword1\\">", "</span>", "mysql", "<span class=\\"keyword2\\">", "</span>" )' --command_version 2
select Entries --output_columns 'highlight(body, "Groonga", "<span class=\\"keyword1\\">", "</span>", "mysql", "<span class=\\"keyword2\\">", "</span>" )'
[
[
0,
Expand Down
Expand Up @@ -10,4 +10,4 @@ select Entries --output_columns \
'highlight(body, \
"Groonga", "<span class=\\"keyword1\\">", "</span>", \
"mysql", "<span class=\\"keyword2\\">", "</span>" \
)' --command_version 2
)'
Expand Up @@ -7,5 +7,5 @@ load --table Entries
{"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight_full(body, "NormalizerAuto", true, "Groonga", "<span class=\\"keyword1\\">", "</span>", "mysql", "<span class=\\"keyword2\\">")' --command_version 2
select Entries --output_columns 'highlight_full(body, "NormalizerAuto", true, "Groonga", "<span class=\\"keyword1\\">", "</span>", "mysql", "<span class=\\"keyword2\\">")'
[[0,0.0,0.0],[[[1],[["highlight_full","null"]],[null]]]]
Expand Up @@ -9,4 +9,4 @@ load --table Entries
select Entries --output_columns \
'highlight_full(body, "NormalizerAuto", true, \
"Groonga", "<span class=\\"keyword1\\">", "</span>", \
"mysql", "<span class=\\"keyword2\\">")' --command_version 2
"mysql", "<span class=\\"keyword2\\">")'
Expand Up @@ -7,5 +7,5 @@ load --table Entries
{"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
]
[[0,0.0,0.0],1]
select Entries --output_columns 'highlight_full(body, true, "Groonga", "<span class=\\"keyword1\\">", "</span>")' --command_version 2
select Entries --output_columns 'highlight_full(body, true, "Groonga", "<span class=\\"keyword1\\">", "</span>")'
[[0,0.0,0.0],[[[1],[["highlight_full","null"]],[null]]]]
Expand Up @@ -8,4 +8,4 @@ load --table Entries

select Entries --output_columns \
'highlight_full(body, true, \
"Groonga", "<span class=\\"keyword1\\">", "</span>")' --command_version 2
"Groonga", "<span class=\\"keyword1\\">", "</span>")'

0 comments on commit 6275a77

Please sign in to comment.