Skip to content

Support reading BLOB bytes by column label - #922

Merged
staticlibs merged 1 commit into
duckdb:mainfrom
hutiefang76:frank/r2-dd-bytes-label-20261010-01a11186
Oct 10, 2026
Merged

staticlibs merged 1 commit into
duckdb:mainfrom
hutiefang76:frank/r2-dd-bytes-label-20261010-01a11186

Conversation

@hutiefang76

Copy link
Copy Markdown
Contributor

ResultSet.getBytes("payload") throws SQLFeatureNotSupportedException for a BLOB that can already be read with getBytes(1). Delegate the column-label overload to the existing indexed getter, matching the other supported getters.

The regression covers binary data, empty BLOBs, SQL NULL and wasNull(), case-insensitive labels, missing labels, and closed results. It fails on the current main branch and passes with the change. The BLOB tests and all 12 TestResults tests also pass using freshly compiled Java sources and the cached native driver; clang-format 11 passes. A native rebuild was not performed locally.

AI assistance was used for implementation and test development.

Signed-off-by: hutiefang76 <137664623+hutiefang76@users.noreply.github.com>

@staticlibs staticlibs 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.

Thanks for the PR! Looks good to me.

@staticlibs
staticlibs merged commit beab6cf into duckdb:main Oct 10, 2026
15 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.

2 participants