#@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 memo COLUMN_SCALAR ShortText column_create Logs_20150203 action COLUMN_SCALAR ShortText table_create Logs_20150204 TABLE_NO_KEY column_create Logs_20150204 timestamp COLUMN_SCALAR Time column_create Logs_20150204 memo COLUMN_SCALAR ShortText column_create Logs_20150204 action COLUMN_SCALAR ShortText table_create Logs_20150205 TABLE_NO_KEY column_create Logs_20150205 timestamp COLUMN_SCALAR Time column_create Logs_20150205 memo COLUMN_SCALAR ShortText column_create Logs_20150205 action COLUMN_SCALAR ShortText 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" } ] 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" } ] 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" } ] #@sleep 1 #@collect-query-log true 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 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 #@collect-query-log false