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

TypeMismatchException when delta has a new field in struct. #59

Open
mervynzhang opened this issue Jul 22, 2024 · 1 comment
Open

TypeMismatchException when delta has a new field in struct. #59

mervynzhang opened this issue Jul 22, 2024 · 1 comment

Comments

@mervynzhang
Copy link

mervynzhang commented Jul 22, 2024

Hi there,

Got the following error when reading a delta table,

TypeMismatchException: Mismatch Type Error: Type 
STRUCT(a VARCHAR, b VARCHAR, c VARCHAR) does not match with 
STRUCT(a VARCHAR, b VARCHAR, c VARCHAR, 
       d VARCHAR). 
Cannot cast STRUCTs of different size

I compare the table schema, it indeed has a new filed in this struct.

It looks very similar to duckdb/duckdb#7734, it's fixed for python, not sure it should be fixed in duckdb or delta side?

Thanks

@samansmink
Copy link
Collaborator

Thanks for reporting @mervynzhang this is a known issue at the moment and is something we are working on!

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

No branches or pull requests

2 participants