-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: delete operation when partition and non partition columns are us…
…ed (#1375) # Description The deletion operation fails when a predicate contains partition and non-partition columns. Datafusion currently raises an error about comparing a dictionary to a scalar E.G The expression `col("partition_col").eq(lit"2023-05-16"))` fails since the literal is a UTF8 and not a dictionary. This is fixed by creating the physical expression using the table schema where partition columns are not wrapped. Otherwise, the wrapped schema is used elsewhere. --------- Co-authored-by: R. Tyler Croy <rtyler@brokenco.de>
- Loading branch information
Showing
2 changed files
with
102 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters