Navigation Menu

Skip to content

Commit

Permalink
Add a test for unary operation with overflowed value
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 19, 2013
1 parent 05eb47b commit deac1c0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
@@ -0,0 +1,48 @@
table_create Values TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Values uint8 COLUMN_SCALAR UInt8
[[0,0.0,0.0],true]
load --table Values
[
{"uint8": 100},
{"uint8": 200},
{"uint8": 30}
]
[[0,0.0,0.0],3]
select Values --filter 'true' --output_columns 'uint8,_score' --scorer '_score = -uint8'
[
[
0,
0.0,
0.0
],
[
[
[
3
],
[
[
"uint8",
"UInt8"
],
[
"_score",
"Int32"
]
],
[
100,
-100
],
[
200,
-200
],
[
30,
-30
]
]
]
]
@@ -0,0 +1,14 @@
table_create Values TABLE_NO_KEY
column_create Values uint8 COLUMN_SCALAR UInt8

load --table Values
[
{"uint8": 100},
{"uint8": 200},
{"uint8": 30}
]

select Values \
--filter 'true' \
--output_columns 'uint8,_score' \
--scorer '_score = -uint8'

0 comments on commit deac1c0

Please sign in to comment.