-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: checking for value type when parquet is partitioned #54074
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
BUG: checking for value type when parquet is partitioned #54074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a unit test and whatsnew entry in 2.1.0.rst
|
||
array = pa | ||
|
||
arr = array.array([1, 2, 3], array.dictionary(array.int32(), array.int32())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a separate test where a dictionary type of strings does work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a case with valid input and used assert to test if value_type is string
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -533,13 +533,13 @@ Sparse | |||
|
|||
ExtensionArray | |||
^^^^^^^^^^^^^^ | |||
- Bug in :class:`ArrowStringArray` constructor raises value error on dictionary on values with string type (:issue:`54074`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Bug in :class:`ArrowStringArray` constructor raises value error on dictionary on values with string type (:issue:`54074`) | |
- Bug in :class:`ArrowStringArray` constructor raises ``ValueError`` with dictionary types of strings (:issue:`54074`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Thanks @SanjithChockan |
Instead of checking pyarrow array's type to be string, it could be a dictionary of values with string type when partitioned. Performed checks for both cases.