-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: fix wrong DATE/DATETIME
comparison in BETWEEN
function
#10313
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10313 +/- ##
==============================================
+ Coverage 77.6699% 77.687% +0.017%
==============================================
Files 411 411
Lines 85441 85457 +16
==============================================
+ Hits 66362 66389 +27
+ Misses 14117 14112 -5
+ Partials 4962 4956 -6 |
Codecov Report
@@ Coverage Diff @@
## master #10313 +/- ##
================================================
+ Coverage 77.6576% 77.6648% +0.0071%
================================================
Files 411 411
Lines 85434 85466 +32
================================================
+ Hits 66346 66377 +31
+ Misses 14127 14125 -2
- Partials 4961 4964 +3 |
DATE/DATETIME
comparison in BETWEEN
function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What problem does this PR solve?
Fix #9764
What is changed and how it works?
Add converts in
betweenToExpression
whenGetCmpTp4MinMax
returns DateTime type. The behavior should be same as MySQL 8.0 now.In mysql, If all values are string-like (string & datetime) and contains datetime, then values are converted to datetime.
Check List
Tests
Code changes