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
When attempting to read or interact with a Delta table that contains a decimal datatype column with a value of 0, operations fail.
The error is "Parser error: can't parse the string value 0E-10 to decimal."
This issue prevents any interaction with tables that include such decimal values.
What you expected to happen:
The expectation is to be able to read from and interact with Delta tables regardless of the presence of decimal columns with a value of 0.
How to reproduce it:
fromdecimalimportDecimalfromdeltalakeimportwrite_deltalakeimportpandasaspd# Create a DataFrame with a decimal columndf=pd.DataFrame({"num": [1, 2, 3], "letter": ["a", "b", "c"]})
df["decimal_col"] = [Decimal(0), Decimal("1.0000000000"), Decimal("2.0000000000")]
# Display the DataFrameprint(df)
# Attempt to write the DataFrame to a Delta tablewrite_deltalake(
"libs/deltalake/tables/some-table", df, overwrite_schema=True, mode="overwrite"
)
Error Message:
Exception has occurred: Exception
Parser error: can't parse the string value 0E-10 to decimal
The text was updated successfully, but these errors were encountered:
Environment
Delta-rs version: 0.15.3
Binding: Python
Environment:
Bug
What happened:
When attempting to read or interact with a Delta table that contains a decimal datatype column with a value of 0, operations fail.
The error is "Parser error: can't parse the string value 0E-10 to decimal."
This issue prevents any interaction with tables that include such decimal values.
What you expected to happen:
The expectation is to be able to read from and interact with Delta tables regardless of the presence of decimal columns with a value of 0.
How to reproduce it:
Error Message:
Exception has occurred: Exception
Parser error: can't parse the string value 0E-10 to decimal
The text was updated successfully, but these errors were encountered: