| 1 |
table_create Values TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Values int8_value COLUMN_SCALAR Int8 |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Values uint8_value COLUMN_SCALAR UInt8 |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Values int16_value COLUMN_SCALAR Int16 |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Values uint16_value COLUMN_SCALAR UInt16 |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
column_create Values int32_value COLUMN_SCALAR Int32 |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Values uint32_value COLUMN_SCALAR UInt32 |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
column_create Values int64_value COLUMN_SCALAR Int64 |
| 16 |
[[0,0.0,0.0],true] |
| 17 |
column_create Values uint64_value COLUMN_SCALAR UInt64 |
| 18 |
[[0,0.0,0.0],true] |
| 19 |
load --table Values |
| 20 |
[ |
| 21 |
{"int8_value":-8, "uint8_value": 8, "int16_value":-16, "uint16_value": 16, "int32_value":-32, "uint32_value": 32, "int64_value":-64, "uint64_value": 64} |
| 22 |
] |
| 23 |
[[0,0.0,0.0],1] |
| 24 |
select Values --filter true --output_columns '_id,_score' --scorer '_score = min(int8_value, uint8_value, int16_value, uint16_value, int32_value, uint32_value, int64_value, uint64_value)' |
| 25 |
[[0,0.0,0.0],[[[1],[["_id","UInt32"],["_score","Int32"]],[1,-64]]]] |