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
What happened: When executing delete operation on a column of type int32, I get ValueError: Invalid comparison operation: Int32 <= Int64
What you expected to happen:
I would expect the function to be able parse the integer to a Int32
How to reproduce it:
from deltalake import DeltaTable, write_deltalake
fromdeltalake.exceptions import DeltaError, DeltaProtocolError, TableNotFoundError, CommitFailedError
import pyarrow as pa
try:
table_uri = "testdelete"
ids = pa.array([1,2,3,4], pa.int32())
names = ["id"]
data = pa.Table.from_arrays([ids], names = names)
write_deltalake(table_uri, data, mode='overwrite')
dt = DeltaTable(table_uri)
dt.delete("id = 1")
except DeltaError as e:
print(e)
More details: Also - need to be able to parse timestamp expressions in delete statements. For instance expressions on the form table.delete(f"timestamp < '2024-1-1'"). This currently generates the following error: ValueError: Invalid comparison operation: Timestamp(Microsecond, None) < Utf8
Current workaround is to use merge statements.
The text was updated successfully, but these errors were encountered:
@mortnstak How did you resolve this issue? I have the same issue with table.delete(predicate) for timestamp
ValueError: Invalid comparison operation: Timestamp(Microsecond, None) < Utf8
Environment
Delta-rs version:0.15.3
Binding: python
Environment:
Bug
What happened: When executing delete operation on a column of type int32, I get
ValueError: Invalid comparison operation: Int32 <= Int64
What you expected to happen:
I would expect the function to be able parse the integer to a Int32
How to reproduce it:
More details: Also - need to be able to parse timestamp expressions in delete statements. For instance expressions on the form
table.delete(f"timestamp < '2024-1-1'")
. This currently generates the following error:ValueError: Invalid comparison operation: Timestamp(Microsecond, None) < Utf8
Current workaround is to use merge statements.
The text was updated successfully, but these errors were encountered: