Skip to content

Commit

Permalink
Add a test for binary operation for Int16 type
Browse files Browse the repository at this point in the history
Operation: X << Y
  • Loading branch information
kou committed Mar 4, 2013
1 parent 599e9fb commit 0e02cdc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
table_create Values TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Values value COLUMN_SCALAR Int16
[[0,0.0,0.0],true]
load --table Values
[
{"value": -14}
]
[[0,0.0,0.0],1]
select Values --filter true --scorer '_score = value << 2' --output_columns 'value, _score'
[[0,0.0,0.0],[[[1],[["value","Int16"],["_score","Int32"]],[-14,-56]]]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table_create Values TABLE_NO_KEY
column_create Values value COLUMN_SCALAR Int16

load --table Values
[
{"value": -14}
]

select Values \
--filter true \
--scorer '_score = value << 2' \
--output_columns 'value, _score'

0 comments on commit 0e02cdc

Please sign in to comment.