Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expr_code: count called function to the number of arguments
It's internal change but it breaks a compatibility that uses grn_expr_append_op() such as Rroonga.
- Loading branch information
Showing
11 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
test/command/suite/sharding/logical_count/condition/range/partial.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| plugin_register sharding | ||
| [[0,0.0,0.0],true] | ||
| table_create Logs_20150203 TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150203 timestamp COLUMN_SCALAR Time | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150203 message COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Logs_20150204 TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150204 timestamp COLUMN_SCALAR Time | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150204 message COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Logs_20150205 TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150205 timestamp COLUMN_SCALAR Time | ||
| [[0,0.0,0.0],true] | ||
| column_create Logs_20150205 message COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| load --table Logs_20150203 | ||
| [ | ||
| {"timestamp": "2015-02-03 23:59:58", "message": "Start"}, | ||
| {"timestamp": "2015-02-03 23:59:58", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-03 23:59:59", "message": "Start"}, | ||
| {"timestamp": "2015-02-03 23:59:59", "message": "Shutdown"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| load --table Logs_20150204 | ||
| [ | ||
| {"timestamp": "2015-02-04 00:00:00", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 00:00:00", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-04 00:00:01", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 00:00:01", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-04 23:59:59", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 23:59:59", "message": "Shutdown"} | ||
| ] | ||
| [[0,0.0,0.0],6] | ||
| load --table Logs_20150205 | ||
| [ | ||
| {"timestamp": "2015-02-05 00:00:00", "message": "Start"}, | ||
| {"timestamp": "2015-02-05 00:00:00", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-05 00:00:01", "message": "Start"}, | ||
| {"timestamp": "2015-02-05 00:00:01", "message": "Shutdown"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| logical_count Logs timestamp --filter 'message == "Shutdown"' --min "2015-02-04 00:00:01" --min_border "include" --max "2015-02-04 23:59:59" --max_border "include" | ||
| [[0,0.0,0.0],2] |
49 changes: 49 additions & 0 deletions
49
test/command/suite/sharding/logical_count/condition/range/partial.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| #@on-error omit | ||
| plugin_register sharding | ||
| #@on-error default | ||
|
|
||
| table_create Logs_20150203 TABLE_NO_KEY | ||
| column_create Logs_20150203 timestamp COLUMN_SCALAR Time | ||
| column_create Logs_20150203 message COLUMN_SCALAR Text | ||
|
|
||
| table_create Logs_20150204 TABLE_NO_KEY | ||
| column_create Logs_20150204 timestamp COLUMN_SCALAR Time | ||
| column_create Logs_20150204 message COLUMN_SCALAR Text | ||
|
|
||
| table_create Logs_20150205 TABLE_NO_KEY | ||
| column_create Logs_20150205 timestamp COLUMN_SCALAR Time | ||
| column_create Logs_20150205 message COLUMN_SCALAR Text | ||
|
|
||
| load --table Logs_20150203 | ||
| [ | ||
| {"timestamp": "2015-02-03 23:59:58", "message": "Start"}, | ||
| {"timestamp": "2015-02-03 23:59:58", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-03 23:59:59", "message": "Start"}, | ||
| {"timestamp": "2015-02-03 23:59:59", "message": "Shutdown"} | ||
| ] | ||
|
|
||
| load --table Logs_20150204 | ||
| [ | ||
| {"timestamp": "2015-02-04 00:00:00", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 00:00:00", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-04 00:00:01", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 00:00:01", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-04 23:59:59", "message": "Start"}, | ||
| {"timestamp": "2015-02-04 23:59:59", "message": "Shutdown"} | ||
| ] | ||
|
|
||
| load --table Logs_20150205 | ||
| [ | ||
| {"timestamp": "2015-02-05 00:00:00", "message": "Start"}, | ||
| {"timestamp": "2015-02-05 00:00:00", "message": "Shutdown"}, | ||
| {"timestamp": "2015-02-05 00:00:01", "message": "Start"}, | ||
| {"timestamp": "2015-02-05 00:00:01", "message": "Shutdown"} | ||
| ] | ||
|
|
||
| logical_count Logs timestamp \ | ||
| --filter 'message == "Shutdown"' \ | ||
| --min "2015-02-04 00:00:01" \ | ||
| --min_border "include" \ | ||
| --max "2015-02-04 23:59:59" \ | ||
| --max_border "include" | ||
|
|