Skip to content

Fix non-flat vector with nested VARIANT (1.5)#695

Merged
staticlibs merged 1 commit into
duckdb:v1.5-variegatafrom
staticlibs:variant_json_15
Jun 5, 2026
Merged

Fix non-flat vector with nested VARIANT (1.5)#695
staticlibs merged 1 commit into
duckdb:v1.5-variegatafrom
staticlibs:variant_json_15

Conversation

@staticlibs

Copy link
Copy Markdown
Member

This is a backport of the PR #694 to v1.5-variegata stable branch.

It appeared that with nested VARIANT/JSON a non-flat (constant) vector can be surfaced during conversion of a result set to Java types.

This PR fixes that code path flattening the vector before processing.

This is more like a band-aid - for long-term the support of VARIANT needs to be re-implemented on top of DuckDBDataChunkReader (see #682).

Fixes: #692

This is a backport of the PR duckdb#694 to `v1.5-variegata` stable branch.

It appeared that with nested `VARIANT`/`JSON` a non-flat (constant)
vector can be surfaced during conversion of a result set to Java types.

This PR fixes that code path flattening the vector before processing.

This is more like a band-aid - for long-term the support of `VARIANT`
needs to be re-implemented on top of `DuckDBDataChunkReader` (see duckdb#682).

Fixes: duckdb#692
@staticlibs staticlibs merged commit 656abff into duckdb:v1.5-variegata Jun 5, 2026
43 of 45 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.

1 participant