Skip to content

Patch 0.11.3 - #3474

Merged
chernser merged 4 commits into
v0.11.0from
patch_0.11.3
Dec 1, 2026
Merged

chernser merged 4 commits into
v0.11.0from
patch_0.11.3

Conversation

@chernser

@chernser chernser commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

back port of the fix #3288


Note

Medium Risk
This is a documented breaking change to jdbc-v2 ResultSet string behavior for FixedString columns; callers that relied on padded text or manual null trimming may need to switch to byte accessors or update expectations.

Overview
0.11.3 backports the fix for issue #3288: jdbc-v2 now trims FixedString text when you read it as a String via ResultSet#getString(...) or ResultSet#getObject(...) (when the result is a String). A new trimFixedString helper in ResultSetImpl strips trailing zero padding (\0) and trailing replacement characters (U+FFFD) after UTF-8 decode, so values like toFixedString('Dario', 10) return "Dario" instead of padded text—relevant for tools such as Tableau that surface the old padding.

Binary read paths are unchanged: getBytes, getBinaryStream, and getObject(..., byte[].class) still return all N bytes. Scope is top-level FixedString columns only (not nested types or plain String columns). Docs (jdbc.mdx, features.md, history/latest/3288.md) and integration tests in JdbcDataTypeTests document and lock in the behavior; version/revision bumps are mechanical across the repo.

Reviewed by Cursor Bugbot for commit 6117237. Bugbot is set up for automated code reviews on this repo. Configure here.

…-trim-trailing-nuls

[jdbc-v2] Cut FixedString text after the last valid UTF-8 character in getString and getObject

(cherry picked from commit 15bb710)
@chernser
chernser requested a review from mzitnik as a code owner December 1, 2026 05:37
@chernser

chernser commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@polyglotAI-bot please review if this change is the exact backport of the #3427

@polyglotAI-bot

Copy link
Copy Markdown
Collaborator

No defects found in the supplied jdbc-v2 FixedString text-read change and version updates. The trimming intentionally changes existing text results; the documentation and release note describe this compatibility impact. Binary accessors and client-v2 decoding are unchanged. The added integration tests cover padding, UTF-8 boundaries, wrappers and nulls; tests could not be run in this sandbox. Exact backport equivalence to #3427 remains unverified because its source patch is absent from the supplied context. Compare that patch before merge. Verdict: ready for human review.

Final verdict

✅ Approve

Automated static review (no build or test run) by Polyglot AI (gpt-6-astra) of aa83bfd. Requested by @chernser. A maintainer can ask for a new review by mentioning @polyglotAI-bot or requesting a review from it.

@polyglotAI-bot polyglotAI-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of aa83bfd posted: see the summary comment and the inline threads.

@monosoul monosoul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 nitpick, otherwise lgtm 👍

@chernser
chernser merged commit 070707f into v0.11.0 Dec 1, 2026
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants