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

Correct typevars for DictionaryType, MapType, RunEncodedType #126

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

jonded94
Copy link
Contributor

@jonded94 jonded94 commented Oct 22, 2024

  • dictionary index types only can be integer, values types can only be simple types
    • In pyarrow-stubs, all primitives are allowed as index types
  • map key and value types can be everything (as far as I was able to see, even tuples are allowed as keys)
    • In pyarrow-stubs, only primitives are allowed as key and value types. This makes nested maps impossible.
  • RunEncodedType length type can be only signed integers, value types can only be simple types
    • That was already the case in pyarrow-stubs, but I made it a little bit clearer nevertheless

Let me know what you think!

Signed-off-by: Jonas Dedden <university@jonas-dedden.de>
@jonded94 jonded94 force-pushed the correct-key-value-type-vars branch from f018506 to 6658785 Compare October 22, 2024 12:55
@zen-xu
Copy link
Owner

zen-xu commented Oct 23, 2024

Thank you for these improvements

@zen-xu zen-xu merged commit e4b3749 into zen-xu:main Oct 23, 2024
2 checks passed
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.

2 participants