Skip to content

Conversation

Mytherin
Copy link
Collaborator

@Mytherin Mytherin commented Apr 9, 2024

Fixes #11578

This PR does a more comprehensive fix of various issues surrounding struct unnest. The issue with struct unnest is that it takes a "special path" since the column expansion happens post-binding. This was previously not handled correctly in a number of places, e.g. ORDER BY [index], ORDER BY ALL, alias binding, expression maps and set operations. This PR cleans this process up by moving the expansion to a separate structure (SelectBindState) that has various functions that correctly deal with the extra columns. This cleans up the code and fixes a number of bugs.

@Mytherin Mytherin merged commit 52c0b23 into duckdb:main Apr 9, 2024
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Apr 9, 2024
Merge pull request duckdb/duckdb#11580 from Mytherin/unneststructcleanup
Merge pull request duckdb/duckdb#11576 from szarnyasg/reprox-labels
Merge pull request duckdb/duckdb#11575 from Mytherin/permissions
Merge pull request duckdb/duckdb#11423 from guenp/guenp/fix-sqlgetinfo-1750-unknown-attribute
Merge pull request duckdb/duckdb#11382 from guenp/guenp/ignore-pq-driver-key
@Mytherin Mytherin deleted the unneststructcleanup branch June 7, 2024 12:53
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.

duckdb "crashes" when unnest(), COUNT, UNION ALL and OFFSET are used together
1 participant