Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for binary assign operation for Int8 type
Operation: X ^= Y
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/operation/bitwise_xor_assign/int8.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
table_create Values TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Values value COLUMN_SCALAR Int8 | ||
[[0,0.0,0.0],true] | ||
column_create Values output COLUMN_SCALAR Int8 | ||
[[0,0.0,0.0],true] | ||
load --table Values | ||
[ | ||
{"value": 7, "output": -126} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Values --filter true --scorer 'output ^= value' --output_columns 'value, output' | ||
[[0,0.0,0.0],[[[1],[["value","Int8"],["output","Int8"]],[7,-123]]]] |
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/operation/bitwise_xor_assign/int8.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
table_create Values TABLE_NO_KEY | ||
column_create Values value COLUMN_SCALAR Int8 | ||
column_create Values output COLUMN_SCALAR Int8 | ||
|
||
load --table Values | ||
[ | ||
{"value": 7, "output": -126} | ||
] | ||
|
||
select Values \ | ||
--filter true \ | ||
--scorer 'output ^= value' \ | ||
--output_columns 'value, output' |