Skip to content

Conversation

@Tishj
Copy link
Contributor

@Tishj Tishj commented Sep 2, 2022

This PR closes #4590

map_extract(map, key)
What was happening is that map_extract did not use the key of the row it's searching, instead it was always using index 0.

Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good. One comment:

@Tishj
Copy link
Contributor Author

Tishj commented Sep 3, 2022

Hmm it seems to be failing on NULL -> TYPE cast
But we don't accept NULL as key anymore, so we can optimize this case to just return an empty list

@hannes hannes merged commit 109f932 into duckdb:master Sep 4, 2022
@Tishj Tishj deleted the map_select_from_column branch October 5, 2022 07:29
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.

map[entry] used in multi-row case, but return Incorrect results

3 participants