Closed c0mm4nd closed 1 year ago
Fixed in 0.9.0, see release notes: https://github.com/Protryon/klickhouse/releases/tag/v0.9.0
It seems buggy. Some chars are replaced by EF BF BD
(the utf8 for the malformed char).
e.g. 0x00208c5d9fe8b48dd1857ba48d4cade2f4328ebeaa792022a7b32afc176dd012
00 20
works, but 8c
is repaced by utf8 EF BF BD
, and then 5d
works, 9f
is also replaced by EF BF BD
...
@Protryon
Will take a look at shortly.
@c0mm4nd I wasn't able to reproduce with the attached example, can you tell me:
format native
? I assume so but want to double-check.My attempt at reproduction: https://github.com/Protryon/klickhouse/blob/master/klickhouse/tests/test_raw_string.rs Feel free to PR that into a minimal reproducible example as well.
EDIT:
I also just ran this after that example test, in the clickhouse-client
CLI tool:
localhost :) select hex(raw_string) from test_raw_string;
SELECT hex(raw_string)
FROM test_raw_string
Query id: 642f3981-79c6-47d6-a1ce-113fbf77d759
┌─hex(raw_string)─┐
│ 00208C5D9F │
└─────────────────┘
1 row in set. Elapsed: 0.002 sec.
Which is correct.
Thanks for your fast reply.
Results in clickhouse-client
are all correct in my test right now. So it might be dbeaver's problem or my mistake on GUI.
Very sorry wasting your time.
No worries. Happy to help.
Current (v0.8.8) is broken when rust type is
Vec<u8>
or u8 slice.Storing hash with hex encoded works fine with
FixedString(64)
, but when trying to store a hash to aFixedString(32)
(to save space)