-
Notifications
You must be signed in to change notification settings - Fork 166
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
ValueError: Mismatch in fields: ? #674
Comments
@djouallah If you scroll below, can you see any mismatch fields? Would there be a way to reproduce this? |
will try to reproduce it, but you need an account in R2 or S3, it is just a POC, basically load data using the SQL catalog, then save the sqlite DB in R2, then when I reload the notebook I download the db again https://colab.research.google.com/drive/10WMnPY1mE9GHm1Zp2wm9PsEGaoCUYjr3?usp=sharing |
Ah, this is because
Notice the And since iceberg-python/pyiceberg/schema.py Line 88 in 7bd5d9e
|
In the "Price" cell, This should be a PyIceberg bug, the ordering of fields in the schema should not matter. |
Oh btw, a workaround before the fix is merged is to reorder the schemas to match manually :) |
Thanks there is another case ? what if a user want to append only a subsets of columns, in Delta table, the system will just add nulls to the missing columns, is this something that iceberg support ? |
Hey @kevinjqliu Thanks for following up here, however, I don't think that #700 is the appropriate fix. Instead, we should re-order the fields based on the table schema. I think we're quite close to that. The iceberg-python/pyiceberg/io/pyarrow.py Line 1796 in 31c6c23
I think we should do two things:
WDYT? |
Fixed in #921. |
Question
I am just appending to the same table using the same data,
but I am getting this error
The text was updated successfully, but these errors were encountered: