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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bug Fixes
[jdbc-v2] Fixed ResultSet#getString(...) and ResultSet#getObject(...) (when returning a String) returning trailing \0 padding and incomplete trailing UTF-8 multi-byte sequences (U+FFFD) for FixedString(N) columns. Values are now cut after the last valid UTF-8 character (for example, toFixedString('Dario', 10) is returned as "Dario" instead of "Dario\0\0\0\0\0", and toFixedString(left('José', 4), 4) as "Jos"). This resolves issues in tools such as Tableau 2026.3 that display the trailing zero bytes.
Applies to top-level FixedString columns (FixedString, Nullable(FixedString), LowCardinality(FixedString), and SimpleAggregateFunction(..., FixedString)), with or without binary_string_support.
Trailing spaces and any \0 or U+FFFD characters inside the value are preserved (note that a literal U+FFFD at the end of a FixedString value is also trimmed).
String columns, FixedString values nested inside Array/Tuple/Map/Variant/Dynamic, FORMAT JSONEachRow results, and getNString/getNCharacterStream/getUnicodeStream are unchanged.
Binary accessors (getBytes(...), getBinaryStream(...), getObject(..., byte[].class)) are unchanged and still return all N raw bytes.