-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
[AIRFLOW-7001] Further fix for the MySQL 5.7 UtcDateTime #7655
[AIRFLOW-7001] Further fix for the MySQL 5.7 UtcDateTime #7655
Conversation
Hey @nuclearpinguin -> I realized my original fix was wrong :( This one should work as intended. |
@anitakar -> happy if you review this one as well :) |
Sure. But maybe around 18:00 Warsaw time |
52be607
to
c6e5bff
Compare
Codecov Report
@@ Coverage Diff @@
## master #7655 +/- ##
==========================================
- Coverage 86.82% 86.55% -0.28%
==========================================
Files 897 897
Lines 42869 42869
==========================================
- Hits 37223 37104 -119
- Misses 5646 5765 +119
Continue to review full report at Codecov.
|
It's green and small ! |
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.
Worth adding tests for this? Especially to test what behaviour this has when given dts in other timezones
True. Will take a look at this! |
LGTM |
c6e5bff
to
e233daf
Compare
e233daf
to
3aa874e
Compare
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.
Couple of comments/optional, and one change to rename the fixture fn to avoid the redefined-outer-name lint warning.
3aa874e
to
14ad1c9
Compare
The original fix from the commit b4215f6 was wrong. It converted to utc initially but then make_naive had used TIMEZONE and converted it to the lcoal timezone rather than UTC.
14ad1c9
to
65fd203
Compare
All fixed @ashb ! |
Gentle ping @ashb |
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.
Sorry I missed nthe earlier ping, have been struggling to keep on top of notifications
The original fix from the commit
b4215f6
was wrong. It converted to utc initially but then make_naive
had used TIMEZONE and converted it to the lcoal timezone rather
than UTC.
Issue link: AIRFLOW-7001
Make sure to mark the boxes below before creating PR: [x]
[AIRFLOW-NNNN]
. AIRFLOW-NNNN = JIRA ID** For document-only changes commit message can start with
[AIRFLOW-XXXX]
.In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.