| 1 |
plugin_register sharding |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Logs_20170315 TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Logs_20170315 timestamp COLUMN_SCALAR Time |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Logs_20170315 price COLUMN_SCALAR UInt32 |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Logs_20170315 |
| 10 |
[ |
| 11 |
{"timestamp": "2017/03/15 00:00:00", "price": 1000}, |
| 12 |
{"timestamp": "2017/03/15 01:00:00", "price": 900}, |
| 13 |
{"timestamp": "2017/03/15 02:00:00", "price": 300} |
| 14 |
] |
| 15 |
[[0,0.0,0.0],3] |
| 16 |
logical_count Logs --shard_key timestamp --columns[price_with_tax].stage initial --columns[price_with_tax].type UInt32 --columns[price_with_tax].flags COLUMN_SCALAR --columns[price_with_tax].value 'price * 1.08' --filter 'price_with_tax > 550' |
| 17 |
[[0,0.0,0.0],2] |
| 18 |
#>logical_count --columns[price_with_tax].flags "COLUMN_SCALAR" --columns[price_with_tax].stage "initial" --columns[price_with_tax].type "UInt32" --columns[price_with_tax].value "price * 1.08" --filter "price_with_tax > 550" --logical_table "Logs" --shard_key "timestamp" |
| 19 |
#:000000000000000 filter(3): true |
| 20 |
#:000000000000000 columns[price_with_tax](3) |
| 21 |
#:000000000000000 filter(2): 2147483650.price_with_tax greater 550 |
| 22 |
#:000000000000000 count(2) |
| 23 |
#:000000000000000 send(0) |
| 24 |
#<000000000000000 rc=0 |