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: Remove array support from inferType. #1050

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenh
Copy link

I believe this was always broken, because the oid of a boolean[] is not the same as the oid of a boolean, and AFAICT inferType was resolving "boolean[] --> the oid of a boolean" without any attempt to translate over to the boolean[] oid.

There's talk of removing inferType entirely, which would have to wait until v4, but I think if this array-based support has always been broken (afaiu?), we can just remove it immediately in a v3 bug fix release.

Fixes #471

I believe this was always broken, because the oid of a boolean[]
is not the same as the oid of a boolean, and AFAICT inferType
was resolving "boolean[] --> the oid of a boolean" without any
attempt to translate over to the `boolean[]` oid.

There's talk of removing `inferType` entirely, which would have to
wait until v4, but I think if this array-based support has always
been broken (afaiu?), we can just remove it immediately in a v3
bug fix release.

Fixes porsager#471
@stephenh stephenh marked this pull request as ready for review March 23, 2025 13:10
@stephenh
Copy link
Author

Disclaimer I haven't run the tests, b/c am waiting for the workflow to be approved (i.e. I haven't looked into getting the tests to run locally--would be great to have a CONTRIBUTING.md tldr).

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.

Boolean array type inference error
1 participant