mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
56 lines
1.9 KiB
SQL
56 lines
1.9 KiB
SQL
SELECT 'Int8';
|
|
SELECT toInt8(0), bitPositionsToArray(toInt8(0));
|
|
SELECT toInt8(1), bitPositionsToArray(toInt8(1));
|
|
SELECT toInt8(-1), bitPositionsToArray(toInt8(-1));
|
|
SELECT toInt8(127), bitPositionsToArray(toInt8(127));
|
|
SELECT toInt8(128), bitPositionsToArray(toInt8(128));
|
|
|
|
SELECT 'Int16';
|
|
SELECT toInt16(0), bitPositionsToArray(toInt16(0));
|
|
SELECT toInt16(1), bitPositionsToArray(toInt16(1));
|
|
SELECT toInt16(-1), bitPositionsToArray(toInt16(-1));
|
|
select toInt16(32765), bitPositionsToArray(toInt16(32765));
|
|
select toInt16(32768), bitPositionsToArray(toInt16(32768));
|
|
|
|
SELECT 'Int32';
|
|
SELECT toInt32(0), bitPositionsToArray(toInt32(0));
|
|
SELECT toInt32(1), bitPositionsToArray(toInt32(1));
|
|
|
|
SELECT 'Int64';
|
|
SELECT toInt64(0), bitPositionsToArray(toInt64(0));
|
|
SELECT toInt64(1), bitPositionsToArray(toInt64(1));
|
|
|
|
SELECT 'Int128';
|
|
SELECT toInt128(0), bitPositionsToArray(toInt128(0));
|
|
SELECT toInt128(1), bitPositionsToArray(toInt128(1));
|
|
|
|
SELECT 'Int256';
|
|
SELECT toInt256(0), bitPositionsToArray(toInt256(0));
|
|
SELECT toInt256(1), bitPositionsToArray(toInt256(1));
|
|
|
|
SELECT 'UInt8';
|
|
SELECT toUInt8(0), bitPositionsToArray(toUInt8(0));
|
|
SELECT toUInt8(1), bitPositionsToArray(toUInt8(1));
|
|
SELECT toUInt8(128), bitPositionsToArray(toUInt8(128));
|
|
|
|
SELECT 'UInt16';
|
|
SELECT toUInt16(0), bitPositionsToArray(toUInt16(0));
|
|
SELECT toUInt16(1), bitPositionsToArray(toUInt16(1));
|
|
|
|
SELECT 'UInt32';
|
|
SELECT toUInt32(0), bitPositionsToArray(toUInt32(0));
|
|
SELECT toUInt32(1), bitPositionsToArray(toUInt32(1));
|
|
|
|
SELECT 'UInt64';
|
|
SELECT toUInt64(0), bitPositionsToArray(toUInt64(0));
|
|
SELECT toUInt64(1), bitPositionsToArray(toUInt64(1));
|
|
|
|
SELECT 'UInt128';
|
|
SELECT toUInt128(0), bitPositionsToArray(toUInt128(0));
|
|
SELECT toUInt128(1), bitPositionsToArray(toUInt128(1));
|
|
SELECT toUInt128(-1), bitPositionsToArray(toUInt128(1));
|
|
|
|
SELECT 'UInt256';
|
|
SELECT toUInt256(0), bitPositionsToArray(toUInt256(0));
|
|
SELECT toUInt256(1), bitPositionsToArray(toUInt256(1));
|