-
Notifications
You must be signed in to change notification settings - Fork 197
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
Better error messages when creating a table with unsupported types #860
Comments
Heres the relevant code iceberg-python/pyiceberg/io/pyarrow.py Line 932 in a6cd0cf
|
I want to work on this issue, but I cannot find a contributing-doc in the repo on how to set-up the project and run tests. |
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible. |
Hi @kevinjqliu, I'm not sure if this issue is being worked on, in case not, can you assign it to me? :) |
@DevChrisCross assigned to you! |
@kevinjqliu @Fokko could you kindly check the PR please? Thank you! :) |
Feature Request / Improvement
Related to #830 (reproducer included)
Creating a iceberg table using an arrow table that contains an unsupported type (such as date64). The resultant message is
TypeError: Unsupported type: date64[ms]
It would be great if this error message also printed out the column name that has this unsupported type.
Even better, instead of raising a
TypeError
can a more specific error be returned (such asUnsupportedPyArrowType
) which includes thepyarrow.Field
(column_name, column_type) as an attribute so that this error can be caught and different exception re-raised based on information contained insideUnsupportedPyArrowType
For example, something like
The text was updated successfully, but these errors were encountered: