mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Introspection
This commit is contained in:
parent
968a559917
commit
bfeefa2c8a
@ -296,6 +296,7 @@ public:
|
|||||||
tryExecuteUIntOrInt<Int256>(column, res_column) ||
|
tryExecuteUIntOrInt<Int256>(column, res_column) ||
|
||||||
tryExecuteString(column, res_column) ||
|
tryExecuteString(column, res_column) ||
|
||||||
tryExecuteFixedString(column, res_column) ||
|
tryExecuteFixedString(column, res_column) ||
|
||||||
|
tryExecuteFloat<BFloat16>(column, res_column) ||
|
||||||
tryExecuteFloat<Float32>(column, res_column) ||
|
tryExecuteFloat<Float32>(column, res_column) ||
|
||||||
tryExecuteFloat<Float64>(column, res_column) ||
|
tryExecuteFloat<Float64>(column, res_column) ||
|
||||||
tryExecuteDecimal<Decimal32>(column, res_column) ||
|
tryExecuteDecimal<Decimal32>(column, res_column) ||
|
||||||
|
@ -43,3 +43,4 @@ LinfDistance(a32, a32_1): 1
|
|||||||
LinfDistance(a16, a16_1): 1
|
LinfDistance(a16, a16_1): 1
|
||||||
LpDistance(a32, a32_1, 5): 3.2875036590344515
|
LpDistance(a32, a32_1, 5): 3.2875036590344515
|
||||||
LpDistance(a16, a16_1, 5): 3.2875036590344515
|
LpDistance(a16, a16_1, 5): 3.2875036590344515
|
||||||
|
1.09375 8C3F 1000110000111111 2 16268 8C3F
|
||||||
|
@ -86,3 +86,10 @@ SELECT a32, a16, a32_1, a16_1,
|
|||||||
LinfDistance(a32, a32_1), LinfDistance(a16, a16_1),
|
LinfDistance(a32, a32_1), LinfDistance(a16, a16_1),
|
||||||
LpDistance(a32, a32_1, 5), LpDistance(a16, a16_1, 5)
|
LpDistance(a32, a32_1, 5), LpDistance(a16, a16_1, 5)
|
||||||
FORMAT Vertical;
|
FORMAT Vertical;
|
||||||
|
|
||||||
|
-- Introspection
|
||||||
|
|
||||||
|
SELECT 1.1::BFloat16 AS x,
|
||||||
|
hex(x), bin(x),
|
||||||
|
byteSize(x),
|
||||||
|
reinterpretAsUInt16(x), hex(reinterpretAsString(x));
|
||||||
|
Loading…
Reference in New Issue
Block a user