Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Correctly allocate the ARRAY target child vector in a MAP function #12111

Merged
merged 7 commits into from
May 22, 2024

Conversation

taniabogatsch
Copy link
Contributor

Most of the changes are just turning the if-else into a switch. The relevant line change is this passing the new_multiplier in the last DataArrays constructor instead of the current_multiplier.

Fixes #12007.

@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 21, 2024 11:40
@Mytherin Mytherin marked this pull request as ready for review May 21, 2024 14:39
@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 21, 2024 15:05
@Mytherin Mytherin marked this pull request as ready for review May 21, 2024 16:18
@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 21, 2024 19:55
@taniabogatsch taniabogatsch marked this pull request as ready for review May 21, 2024 19:55
@taniabogatsch
Copy link
Contributor Author

The test failure seems to be unrelated: IO Error: Read error for HTTP GET Range to. CI also passed on my fork: https://github.com/taniabogatsch/duckdb/tree/map-fix.

@Mytherin Mytherin merged commit f99be62 into duckdb:main May 22, 2024
42 of 43 checks passed
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request May 22, 2024
Merge pull request duckdb/duckdb#12111 from taniabogatsch/map-fix
@taniabogatsch taniabogatsch deleted the map-fix branch May 22, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DuckDB crashes with a crafted ARRAY expression
2 participants