mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 17:20:50 +00:00
add int8 int16 int32 int64 and tests
This commit is contained in:
parent
3979f858fe
commit
8d4e433c7d
@ -311,6 +311,10 @@ public:
|
||||
tryExecuteUIntOrInt<UInt64>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<UInt128>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<UInt256>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int8>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int16>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int32>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int64>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int128>(column, res_column) ||
|
||||
tryExecuteUIntOrInt<Int256>(column, res_column) ||
|
||||
tryExecuteString(column, res_column) ||
|
||||
|
@ -1,5 +1,14 @@
|
||||
174876E800
|
||||
174876E800
|
||||
64
|
||||
9C
|
||||
64
|
||||
FF9C
|
||||
64
|
||||
FFFFFF9C
|
||||
64
|
||||
FFFFFFFFFFFFFF9C
|
||||
174876E800
|
||||
174876E800
|
||||
174876E800
|
||||
FFFFFFFFFFFFFFFFFFFFFFE8B7891800
|
||||
|
@ -2,6 +2,24 @@ SELECT hex(toUInt128(100000000000)) AS res;
|
||||
|
||||
SELECT hex(toUInt256(100000000000)) AS res;
|
||||
|
||||
SELECT hex(toInt8(100)) AS res;
|
||||
|
||||
SELECT hex(toInt8(-100)) AS res;
|
||||
|
||||
SELECT hex(toInt16(100)) AS res;
|
||||
|
||||
SELECT hex(toInt16(-100)) AS res;
|
||||
|
||||
SELECT hex(toInt32(100)) AS res;
|
||||
|
||||
SELECT hex(toInt32(-100)) AS res;
|
||||
|
||||
SELECT hex(toInt64(100)) AS res;
|
||||
|
||||
SELECT hex(toInt64(-100)) AS res;
|
||||
|
||||
SELECT hex(toInt128(100000000000)) AS res;
|
||||
|
||||
SELECT hex(toInt128(100000000000)) AS res;
|
||||
|
||||
SELECT hex(toInt256(100000000000)) AS res;
|
||||
|
Loading…
Reference in New Issue
Block a user