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 memo COLUMN_SCALAR ShortText [[0,0.0,0.0],true] column_create Logs_20150203 action COLUMN_SCALAR ShortText [[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 memo COLUMN_SCALAR ShortText [[0,0.0,0.0],true] column_create Logs_20150204 action COLUMN_SCALAR ShortText [[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 memo COLUMN_SCALAR ShortText [[0,0.0,0.0],true] column_create Logs_20150205 action COLUMN_SCALAR ShortText [[0,0.0,0.0],true] load --table Logs_20150203 [ { "timestamp": "2015-02-03 12:49:00", "memo": "2015-02-03 12:49:00", "action": "Start" }, { "timestamp": "2015-02-03 23:59:59", "memo": "2015-02-03 23:59:59", "action": "Shutdown" } ] [[0,0.0,0.0],2] load --table Logs_20150204 [ { "timestamp": "2015-02-04 00:00:00", "memo": "2015-02-04 00:00:00", "action": "Start" }, { "timestamp": "2015-02-04 13:49:00", "memo": "2015-02-04 13:49:00", "action": "Restart" }, { "timestamp": "2015-02-04 13:50:00", "memo": "2015-02-04 13:50:00", "action": "Restart" } ] [[0,0.0,0.0],3] load --table Logs_20150205 [ { "timestamp": "2015-02-05 13:49:00", "memo": "2015-02-05 13:49:00", "action": "Restart" }, { "timestamp": "2015-02-05 13:50:00", "memo": "2015-02-05 13:50:00", "action": "Restart" }, { "timestamp": "2015-02-05 13:51:00", "memo": "2015-02-05 13:51:00", "action": "Restart" }, { "timestamp": "2015-02-05 13:52:00", "memo": "2015-02-05 13:52:00", "action": "Shutdown" } ] [[0,0.0,0.0],4] logical_select Logs --shard_key timestamp --limit 0 --output_columns _id --drilldowns[action].table restart --drilldowns[action].keys _key --drilldowns[restart].stage initial --drilldowns[restart].keys 'action' --drilldowns[restart].filter "_key @ 'Restart'" --drilldowns[restart].output_columns _key --drilldowns[start].stage initial --drilldowns[start].keys 'action' --drilldowns[start].filter "_key @ 'Start'" --drilldowns[start].output_columns _key [ [ 0, 0.0, 0.0 ], [ [ [ 9 ], [ [ "_id", "UInt32" ] ] ], { "action": [ [ 1 ], [ [ "_key", "ShortText" ], [ "_nsubrecs", "Int32" ] ], [ "Restart", 1 ] ], "restart": [ [ 1 ], [ [ "_key", "ShortText" ] ], [ "Restart" ] ], "start": [ [ 2 ], [ [ "_key", "ShortText" ] ], [ "Start" ], [ "Restart" ] ] } ] ] #>logical_select --drilldowns[action].keys "_key" --drilldowns[action].table "restart" --drilldowns[restart].filter "_key @ 'Restart'" --drilldowns[restart].keys "action" --drilldowns[restart].output_columns "_key" --drilldowns[restart].stage "initial" --drilldowns[start].filter "_key @ 'Start'" --drilldowns[start].keys "action" --drilldowns[start].output_columns "_key" --drilldowns[start].stage "initial" --limit "0" --logical_table "Logs" --output_columns "_id" --shard_key "timestamp" #:000000000000000 select(2)[Logs_20150203] #:000000000000000 select(3)[Logs_20150204] #:000000000000000 select(4)[Logs_20150205] #:000000000000000 drilldowns[restart](3) #:000000000000000 filter(1): # match "Restart" #:000000000000000 drilldowns[restart].filter(1) #:000000000000000 drilldowns[action](1) #:000000000000000 drilldowns[start](3) #:000000000000000 filter(2): # match "Start" #:000000000000000 drilldowns[start].filter(2) #:000000000000000 output(0) #:000000000000000 output.drilldowns[action](1) #:000000000000000 output.drilldowns[restart](1) #:000000000000000 output.drilldowns[start](2) #:000000000000000 send(0) #<000000000000000 rc=0 logical_select Logs --shard_key timestamp --limit 0 --output_columns _id --drilldowns[action].table start --drilldowns[action].keys _key --drilldowns[restart].stage initial --drilldowns[restart].keys 'action' --drilldowns[restart].filter "_key @ 'Restart'" --drilldowns[restart].output_columns _key --drilldowns[start].stage initial --drilldowns[start].keys 'action' --drilldowns[start].filter "_key @ 'Start'" --drilldowns[start].output_columns _key [ [ 0, 0.0, 0.0 ], [ [ [ 9 ], [ [ "_id", "UInt32" ] ] ], { "action": [ [ 2 ], [ [ "_key", "ShortText" ], [ "_nsubrecs", "Int32" ] ], [ "Start", 1 ], [ "Restart", 1 ] ], "restart": [ [ 1 ], [ [ "_key", "ShortText" ] ], [ "Restart" ] ], "start": [ [ 2 ], [ [ "_key", "ShortText" ] ], [ "Start" ], [ "Restart" ] ] } ] ] #>logical_select --drilldowns[action].keys "_key" --drilldowns[action].table "start" --drilldowns[restart].filter "_key @ 'Restart'" --drilldowns[restart].keys "action" --drilldowns[restart].output_columns "_key" --drilldowns[restart].stage "initial" --drilldowns[start].filter "_key @ 'Start'" --drilldowns[start].keys "action" --drilldowns[start].output_columns "_key" --drilldowns[start].stage "initial" --limit "0" --logical_table "Logs" --output_columns "_id" --shard_key "timestamp" #:000000000000000 select(2)[Logs_20150203] #:000000000000000 select(3)[Logs_20150204] #:000000000000000 select(4)[Logs_20150205] #:000000000000000 drilldowns[start](3) #:000000000000000 filter(2): # match "Start" #:000000000000000 drilldowns[start].filter(2) #:000000000000000 drilldowns[action](2) #:000000000000000 drilldowns[restart](3) #:000000000000000 filter(1): # match "Restart" #:000000000000000 drilldowns[restart].filter(1) #:000000000000000 output(0) #:000000000000000 output.drilldowns[action](2) #:000000000000000 output.drilldowns[restart](1) #:000000000000000 output.drilldowns[start](2) #:000000000000000 send(0) #<000000000000000 rc=0