We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Delta-rs version: deltalake-0.16.3
Binding: python
What happened: writing two dataframes with different schemas with schema_mode='merge' causes a compact to fail
What you expected to happen: succesfully compact the files with the merged schema
How to reproduce it:
df1 = pd.DataFrame({'A':[1]}) write_deltalake(target_table, df1,engine="rust",storage_options=storage_options,mode='append',schema_mode='merge')
df2 = pd.DataFrame({'B':[2]}) write_deltalake(target_table, df2,engine="rust",storage_options=storage_options,mode='append',schema_mode='merge')
dt = DeltaTable(target_table,storage_options=storage_options) dt.optimize.compact()
fails with: SchemaMismatchError: Could not find column B
The text was updated successfully, but these errors were encountered:
fix(python,rust): optimize compact on schema evolved table (#2358)
fa435e1
# Description Default should be always to add missing columns in compaction. # Related Issue(s) - fixes #2347
Successfully merging a pull request may close this issue.
Environment
Delta-rs version: deltalake-0.16.3
Binding: python
Bug
What happened:
writing two dataframes with different schemas with schema_mode='merge' causes a compact to fail
What you expected to happen:
succesfully compact the files with the merged schema
How to reproduce it:
df1 = pd.DataFrame({'A':[1]})
write_deltalake(target_table, df1,engine="rust",storage_options=storage_options,mode='append',schema_mode='merge')
df2 = pd.DataFrame({'B':[2]})
write_deltalake(target_table, df2,engine="rust",storage_options=storage_options,mode='append',schema_mode='merge')
dt = DeltaTable(target_table,storage_options=storage_options)
dt.optimize.compact()
fails with: SchemaMismatchError: Could not find column B
The text was updated successfully, but these errors were encountered: