Skip to content

Commit

Permalink
fix exception string in writer.py
Browse files Browse the repository at this point in the history
The exception message is ambiguous as it interchanges the table and data schemas.
  • Loading branch information
sebdiem authored Sep 26, 2023
1 parent b447934 commit 12eedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/deltalake/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def write_deltalake(
):
raise ValueError(
"Schema of data does not match table schema\n"
f"Table schema:\n{schema}\nData Schema:\n{table.schema().to_pyarrow()}"
f"Data schema:\n{schema}\nTable Schema:\n{table.schema().to_pyarrow()}"
)

if mode == "error":
Expand Down

0 comments on commit 12eedfe

Please sign in to comment.