-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Python] KeyError in MapScalar with custom field name #36809
Comments
kou
changed the title
KeyError in MapScalar with custom field name
[Python] KeyError in MapScalar with custom field name
Jul 24, 2023
0x26res
pushed a commit
to 0x26res/arrow
that referenced
this issue
Jul 24, 2023
…scalar-as-py-with-custom-field-name
0x26res
pushed a commit
to 0x26res/arrow
that referenced
this issue
Jul 25, 2023
…scalar-as-py-with-custom-field-name
kou
pushed a commit
that referenced
this issue
Jul 26, 2023
### Rationale for this change `MapScalar.as_py` doesn't take into account custom key/value field names ### What changes are included in this PR? Fix and tests ### Are these changes tested? Simple unit test ### Are there any user-facing changes? No API changes. * Closes: #36809 Authored-by: aandres <aandres@tradewelltech.co> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
R-JunmingChen
pushed a commit
to R-JunmingChen/arrow
that referenced
this issue
Aug 20, 2023
…he#36830) ### Rationale for this change `MapScalar.as_py` doesn't take into account custom key/value field names ### What changes are included in this PR? Fix and tests ### Are these changes tested? Simple unit test ### Are there any user-facing changes? No API changes. * Closes: apache#36809 Authored-by: aandres <aandres@tradewelltech.co> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this issue
Nov 13, 2023
…he#36830) ### Rationale for this change `MapScalar.as_py` doesn't take into account custom key/value field names ### What changes are included in this PR? Fix and tests ### Are these changes tested? Simple unit test ### Are there any user-facing changes? No API changes. * Closes: apache#36809 Authored-by: aandres <aandres@tradewelltech.co> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug, including details regarding any error messages, version, and platform.
It is possible to customize the name of the value field for
pa.MapType
. I believe it's a niche feature used for compatibility with parquet and it doesn't change the semantic of the map type.this feature causes a KeyError in
MapScalar.as_py
:Component(s)
Python
The text was updated successfully, but these errors were encountered: