Introspection

This commit is contained in:
Alexey Milovidov 2024-11-11 01:02:10 +01:00
parent 968a559917
commit bfeefa2c8a
3 changed files with 9 additions and 0 deletions

View File

@ -296,6 +296,7 @@ public:
tryExecuteUIntOrInt<Int256>(column, res_column) ||
tryExecuteString(column, res_column) ||
tryExecuteFixedString(column, res_column) ||
tryExecuteFloat<BFloat16>(column, res_column) ||
tryExecuteFloat<Float32>(column, res_column) ||
tryExecuteFloat<Float64>(column, res_column) ||
tryExecuteDecimal<Decimal32>(column, res_column) ||

View File

@ -43,3 +43,4 @@ LinfDistance(a32, a32_1): 1
LinfDistance(a16, a16_1): 1
LpDistance(a32, a32_1, 5): 3.2875036590344515
LpDistance(a16, a16_1, 5): 3.2875036590344515
1.09375 8C3F 1000110000111111 2 16268 8C3F

View File

@ -86,3 +86,10 @@ SELECT a32, a16, a32_1, a16_1,
LinfDistance(a32, a32_1), LinfDistance(a16, a16_1),
LpDistance(a32, a32_1, 5), LpDistance(a16, a16_1, 5)
FORMAT Vertical;
-- Introspection
SELECT 1.1::BFloat16 AS x,
hex(x), bin(x),
byteSize(x),
reinterpretAsUInt16(x), hex(reinterpretAsString(x));