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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7750: array_column type inference #7760

Merged
merged 7 commits into from Mar 7, 2022

Conversation

mtk3d
Copy link
Contributor

@mtk3d mtk3d commented Mar 6, 2022

My proposition of fixing this problem #7750
I was trying to keep the similar tests together, so this change looks a bit unclear in diff.

That's my first contribution to the psalm, so sorry if something is wrong 馃槃

add one more test when index key not exist in array
reorganise samples to keep all similar together
@alex-dev
Copy link

alex-dev commented Mar 6, 2022

Why new Union($row) rather than just $row itself?

@mtk3d
Copy link
Contributor Author

mtk3d commented Mar 6, 2022

You're right @alex-dev, fixed 馃槂

From: vimeo#7760 (comment)

$result_element_type should be a Union, $row_shape is an Atomic
(a part of a Union). new Union([$row_shape]); should be ok
@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Mar 6, 2022
@orklah
Copy link
Collaborator

orklah commented Mar 7, 2022

That's great! Thanks!

Congrats for your first PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants