You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling delete() fails with a long query without any message. The exit code is 1.
What you expected to happen:
Given that we need to delete in a single command to void creating many table version I expect delete() to take an arbitrary long query.
How to reproduce it:
In this example, I create a table of 100,000 rows. Think if x and and ID and I then wanted to delete 10% by id.
It seems to fail when trying to delete ~1600 items.
fromdeltalakeimportDeltaTable, write_deltalakeimportpandasaspdimportshutilprint(f"deleting table")
shutil.rmtree("./deltatable")
print(f"creating table")
df=pd.DataFrame({'x': [f"{i}"foriinrange(100000)]})
write_deltalake('./deltatable', df)
print(f"deleting rows")
dt=DeltaTable("./deltatable")
query=' or '.join([f"x = '{i}'"foriinrange(16000) ifi%10==0]) # fails at 16000, works at 15000del_metrics=dt.delete(query)
print(del_metrics)
_dt=DeltaTable("./deltatable")
print(_dt.history())
More details:
The text was updated successfully, but these errors were encountered:
Thanks. Your formulation is indeed working, even up to deleting 10% of 15,000,000 records (🤯) before memory is an issue. It's a bit hard to understand why it can do 10,000x more like that, but ill take it..
Environment
Delta-rs version: delta-rs.0.19.0
Binding: python
Environment:
Bug
What happened:
Calling delete() fails with a long query without any message. The exit code is
1
.What you expected to happen:
Given that we need to delete in a single command to void creating many table version I expect delete() to take an arbitrary long query.
How to reproduce it:
In this example, I create a table of 100,000 rows. Think if
x
and and ID and I then wanted to delete 10% by id.It seems to fail when trying to delete ~1600 items.
More details:
The text was updated successfully, but these errors were encountered: