-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix validation logic for dates in duckdb and postgres
This fix is pre-requisite to using test cases from substrait directly. substrait testcases have examples which can only contain the date part but the python client returns a datetime object. Converting these to strings and comparing is not quite right. e.g., '2024-03-01' == '2024-03-01:00:00:00' will fail if we do string compare. The fix is to not compare the empty fields hrs, mins, secs, etc if we only contain the date part
- Loading branch information
1 parent
621bcb2
commit 9dea9ce
Showing
3 changed files
with
35 additions
and
14 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
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