-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: expression with dates to string conversation #3019
Conversation
ACTION NEEDED delta-rs follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
f776584
to
bd549cf
Compare
Signed-off-by: Jonas Schmitz <[email protected]>
bd549cf
to
ec9be94
Compare
supersedes this: #2463 Thanks for finishing this! @JonasDev1 can you update the python tests asserts, then we are good to go |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3019 +/- ##
==========================================
+ Coverage 72.44% 72.47% +0.03%
==========================================
Files 128 128
Lines 40841 40853 +12
Branches 40841 40853 +12
==========================================
+ Hits 29587 29610 +23
+ Misses 9363 9359 -4
+ Partials 1891 1884 -7 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Signed-off-by: Jonas Schmitz <[email protected]>
Signed-off-by: Jonas Schmitz <[email protected]>
Head branch was pushed to by a user without write access
Description
In the expr to str conversation was an issue for dates.
Before this expr
lit(ScalarValue::Date32(Some(18262)))
was converted to_date = 2020-01-01
. If you want to parse this string again as an expr it will result into...BinaryExpr(**BinaryExpr { left: BinaryExpr(BinaryExpr { left: Literal(Int64(2020)), op: Minus, right: Literal(Int64(1)) })...
which is not correct.Now
lit(ScalarValue::Date32(Some(18262)))
will be converted to_date = '2020-01-01'::date
, which will be parsed a as date again.Related Issue(s)