You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TABLE test (
name FixedString(3)
) ENGINE = TinyLog;
INSERT INTO test VALUES ('foo'), ('bar'), ('zzz');
SELECT
name,
reinterpretAsUInt64(name),
reinterpretAsUInt64('foo')
FROM test
WHERE name = 'foo';
┌─name─┬─reinterpretAsUInt64(name)─┬─reinterpretAsUInt64(\'foo\')─┐
│ foo │ 7017296931985518438 │ 7303014 │
└──────┴───────────────────────────┴──────────────────────────────┘
The middle value looks wrong. What is really inside it?
SELECT reinterpretAsString(reinterpretAsUInt64(name))
FROM test
WHERE name = 'foo'
┌─reinterpretAsString(reinterpretAsUInt64(name))─┐
│ foobarzz │
└────────────────────────────────────────────────┘
Activity
ztlpn commentedon Feb 2, 2017
Confirmed.