plugin_register sharding [[0,0.0,0.0],true] table_create Logs_20150203 TABLE_HASH_KEY ShortText [[0,0.0,0.0],true] column_create Logs_20150203 timestamp COLUMN_SCALAR Time [[0,0.0,0.0],true] table_create Logs_20150204 TABLE_HASH_KEY ShortText [[0,0.0,0.0],true] column_create Logs_20150204 timestamp COLUMN_SCALAR Time [[0,0.0,0.0],true] table_create Logs TABLE_HASH_KEY ShortText [[0,0.0,0.0],true] column_create Logs original_id COLUMN_SCALAR UInt32 [[0,0.0,0.0],true] column_create Logs timestamp_text COLUMN_SCALAR ShortText [[0,0.0,0.0],true] load --table Logs_20150203 [ { "_key": "2015-02-03:1", "timestamp": "2015-02-03 10:49:00" }, { "_key": "2015-02-03:2", "timestamp": "2015-02-03 12:49:00" } ] [[0,0.0,0.0],2] load --table Logs_20150204 [ { "_key": "2015-02-04:1", "timestamp": "2015-02-04 00:00:00" } ] [[0,0.0,0.0],1] logical_select --logical_table Logs --shard_key timestamp --filter true --load_table Logs --load_columns "_key, original_id, timestamp_text" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --limit 0 [ [ 0, 0.0, 0.0 ], [ [ [ 3 ], [ [ "_id", "UInt32" ], [ "_key", "ShortText" ], [ "timestamp", "Time" ] ] ] ] ] #>logical_select --filter "true" --limit "0" --load_columns "_key, original_id, timestamp_text" --load_table "Logs" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --logical_table "Logs" --shard_key "timestamp" #:000000000000000 filter(2): true #:000000000000000 select(2)[Logs_20150203] #:000000000000000 filter(1): true #:000000000000000 select(1)[Logs_20150204] #:000000000000000 load(2)[Logs_20150203]: [Logs][2] #:000000000000000 load(1)[Logs_20150204]: [Logs][3] #:000000000000000 load(3): [Logs][3] #:000000000000000 output(0) #:000000000000000 send(0) #<000000000000000 rc=0 select --table Logs [ [ 0, 0.0, 0.0 ], [ [ [ 3 ], [ [ "_id", "UInt32" ], [ "_key", "ShortText" ], [ "original_id", "UInt32" ], [ "timestamp_text", "ShortText" ] ], [ 1, "1422928140000000:1", 1, "1422928140000000" ], [ 2, "1422935340000000:2", 2, "1422935340000000" ], [ 3, "1422975600000000:1", 1, "1422975600000000" ] ] ] ]