Skip to content

Fix non-flat vector with nested VARIANT#694

Merged
staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:variant_json
Jun 6, 2026
Merged

Fix non-flat vector with nested VARIANT#694
staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:variant_json

Conversation

@staticlibs

Copy link
Copy Markdown
Member

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

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 added a commit that referenced this pull request Jun 5, 2026
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
@staticlibs staticlibs merged commit 66acb81 into duckdb:main Jun 6, 2026
85 of 90 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.

JVM crashes with SIGSEGV when selecting a variant column

1 participant