Navigation Menu

Skip to content

Commit

Permalink
test: update expected to include condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 13, 2018
1 parent 32562e1 commit 3902db9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Expand Up @@ -16,8 +16,8 @@ load --table Logs_20170315
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'
[[0,0.0,0.0],2]
#>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"
#:000000000000000 filter(3)
#:000000000000000 filter(2)
#:000000000000000 filter(3): true
#:000000000000000 filter(2): 2147483650.price_with_tax greater 550
#:000000000000000 count(2)
#<000000000000000 rc=0
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'
Expand Down
4 changes: 2 additions & 2 deletions test/command/suite/sharding/logical_count/query_log.expected
Expand Up @@ -16,7 +16,7 @@ load --table Logs_20170315
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'
[[0,0.0,0.0],2]
#>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"
#:000000000000000 filter(3)
#:000000000000000 filter(2)
#:000000000000000 filter(3): true
#:000000000000000 filter(2): 2147483650.price_with_tax greater 550
#:000000000000000 count(2)
#<000000000000000 rc=0
Expand Up @@ -42,7 +42,7 @@ logical_range_filter Logs --shard_key timestamp --filter '_id > 1' --colum
]
]
#>logical_range_filter --columns[price_with_tax].flags "COLUMN_SCALAR" --columns[price_with_tax].stage "filtered" --columns[price_with_tax].type "UInt32" --columns[price_with_tax].value "price * 1.08" --filter "_id > 1" --logical_table "Logs" --output_columns "price,price_with_tax" --shard_key "timestamp"
#:000000000000000 filter(2)
#:000000000000000 filter(2): #<accessor _id(Logs_20170315)> greater 1
#<000000000000000 rc=0
logical_range_filter Logs --shard_key timestamp --filter '_id > 1' --columns[price_with_tax].stage filtered --columns[price_with_tax].type UInt32 --columns[price_with_tax].flags COLUMN_SCALAR --columns[price_with_tax].value 'price * 1.08' --output_columns price,price_with_tax
[
Expand Down
Expand Up @@ -46,7 +46,7 @@ logical_range_filter Logs --shard_key timestamp --columns[price_with_tax].st
]
]
#>logical_range_filter --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" --logical_table "Logs" --output_columns "price,price_with_tax" --shard_key "timestamp"
#:000000000000000 filter(3)
#:000000000000000 filter(3): true
#<000000000000000 rc=0
logical_range_filter 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' --output_columns price,price_with_tax
[
Expand Down
Expand Up @@ -158,8 +158,8 @@ logical_select Logs --shard_key timestamp --limit 0 --output_columns _id
#:000000000000000 select(2)[Logs_20150203]
#:000000000000000 select(3)[Logs_20150204]
#:000000000000000 select(4)[Logs_20150205]
#:000000000000000 filter(1)
#:000000000000000 filter(2)
#:000000000000000 filter(1): #<accessor _key(anonymous)> match "Restart"
#:000000000000000 filter(2): #<accessor _key(anonymous)> match "Start"
#:000000000000000 output(0)
#:000000000000000 output.drilldowns(1)
#:000000000000000 output.drilldowns(1)
Expand Down Expand Up @@ -246,8 +246,8 @@ logical_select Logs --shard_key timestamp --limit 0 --output_columns _id
#:000000000000000 select(2)[Logs_20150203]
#:000000000000000 select(3)[Logs_20150204]
#:000000000000000 select(4)[Logs_20150205]
#:000000000000000 filter(2)
#:000000000000000 filter(1)
#:000000000000000 filter(2): #<accessor _key(anonymous)> match "Start"
#:000000000000000 filter(1): #<accessor _key(anonymous)> match "Restart"
#:000000000000000 output(0)
#:000000000000000 output.drilldowns(2)
#:000000000000000 output.drilldowns(1)
Expand Down
Expand Up @@ -91,11 +91,11 @@ logical_select Logs --shard_key timestamp --columns[filtered_id].stage filte
]
]
#>logical_select --columns[filtered_id].flags "COLUMN_SCALAR" --columns[filtered_id].stage "filtered" --columns[filtered_id].type "UInt32" --columns[filtered_id].value "_id" --filter "price < 910" --logical_table "Logs" --output_columns "_id,filtered_id,price" --shard_key "timestamp"
#:000000000000000 filter(1)
#:000000000000000 filter(1): Logs_20170315.price less 910
#:000000000000000 select(1)[Logs_20170315]
#:000000000000000 filter(2)
#:000000000000000 filter(2): Logs_20170316.price less 910
#:000000000000000 select(2)[Logs_20170316]
#:000000000000000 filter(2)
#:000000000000000 filter(2): Logs_20170317.price less 910
#:000000000000000 select(2)[Logs_20170317]
#:000000000000000 output(5)
#<000000000000000 rc=0

0 comments on commit 3902db9

Please sign in to comment.