Skip to content

Conversation

Mytherin
Copy link
Collaborator

Follow-up fixes from #17448

Nested default values were ignored, which caused this code not to correctly handle missing fields.

In addition, we can no longer directly emit the default value as the result since the default value is no longer equivalent to the actual value (e.g. the default value might be {'list': {'k': NULL}} when the actual value should be [{'k': NULL}].) We fix this by allowing remap_struct to take NULL as remap target, in case there are zero columns used from the source struct.

@Mytherin Mytherin merged commit 4068885 into duckdb:v1.3-ossivalis May 22, 2025
48 checks passed
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Jun 2, 2025
MultiFileReader: Fix for handling nested list/map default values (duckdb/duckdb#17589)
@Mytherin Mytherin deleted the structinlistmapalter branch June 12, 2025 15:27
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