Skip to content
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(hogql): properly handle dst transition for funnel conversion window #21042

Merged
merged 12 commits into from
Mar 20, 2024

Conversation

thmsobrmlr
Copy link
Contributor

Problem

When a funnel insight spans over a DST transition calculations like + INTERVAL 14 DAYS would come up one hour short/long, since the timestamps are "timezone aware".

Changes

Converting them to UTC before the addition mitigates the problem.

How did you test this code?

Added tests for everything except exclusions and the correlation events query

@thmsobrmlr thmsobrmlr force-pushed the hogql-funnel-window-dst branch from 86f09ce to 1053fde Compare March 20, 2024 13:19
@thmsobrmlr thmsobrmlr changed the base branch from hogql-timezone-overrides to master March 20, 2024 13:22
@thmsobrmlr thmsobrmlr force-pushed the hogql-funnel-window-dst branch from 1053fde to eeed68d Compare March 20, 2024 13:22
@thmsobrmlr thmsobrmlr requested a review from a team March 20, 2024 16:19
@thmsobrmlr
Copy link
Contributor Author

I'm YOLOing this fix for flagged code, so that I can get another round of testing in. Would appreciate comments though & will address in a follow up

@thmsobrmlr thmsobrmlr enabled auto-merge (squash) March 20, 2024 16:20
@thmsobrmlr thmsobrmlr merged commit 0bcf49f into master Mar 20, 2024
125 of 127 checks passed
@thmsobrmlr thmsobrmlr deleted the hogql-funnel-window-dst branch March 20, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant