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
Writing bytes to a String column fails with INTERNAL EXCEPTION WHILE SERIALIZING. Writing bytes to FixedString works as expected, so I assume the same should be possible with String columns. But I'm very new to Clickhouse, so I may have missed something:)
Thanks for opening this issue and taking the time to investigate a fix. Accepting bytes for a string column makes perfect sense and I'm surprised no one has mentioned it before.
My only concern with your fix is performance, since string writes are already slow and an extra type check and assignment are going to make that slightly worse. But I can address that later as part of #106. For a short term fix I'm inclined to use the same approach as other columns, and assume that all values in the column are the same type as the first (non-NULL) value and write all strings or all bytes objects as appropriate.
Writing bytes to a
String
column fails withINTERNAL EXCEPTION WHILE SERIALIZING
. Writing bytes toFixedString
works as expected, so I assume the same should be possible withString
columns. But I'm very new to Clickhouse, so I may have missed something:)Steps to reproduce
See main...TimNooren:clickhouse-connect:string_accepts_bytes for a unit test that illustrates the issue, and a naive fix.
Configuration
Environment
The text was updated successfully, but these errors were encountered: