#@on-error omit plugin_register sharding #@on-error default table_create Logs_20170315 TABLE_NO_KEY column_create Logs_20170315 timestamp COLUMN_SCALAR Time column_create Logs_20170315 price COLUMN_SCALAR UInt32 load --table Logs_20170315 [ {"timestamp": "2017/03/15 00:00:00", "price": 1000}, {"timestamp": "2017/03/15 01:00:00", "price": 900}, {"timestamp": "2017/03/15 02:00:00", "price": 300} ] #@sleep 1 #@collect-query-log true 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' 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' #@collect-query-log false