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 timestamp and interval arithmetic bug #11017

Closed
wants to merge 1 commit into from

Conversation

pedroerp
Copy link
Contributor

Summary:
For timestamps plus or minus intervals, the arithmetic needs to be
done at the local timezone (not UTC) to account for intervals than span a
daylight savings time boundary. This is already handled for timestamp with
timezone types, and not needed for IntervalDayTime.

Reviewed By: spershin

Differential Revision: D62811693

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 17, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62811693

Copy link

netlify bot commented Sep 17, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit a1d2b81
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66e9c27233a21e00089370a5

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62811693

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Sep 17, 2024
Summary:
Pull Request resolved: facebookincubator#11017

For timestamps plus or minus intervals, the arithmetic needs to be
done at the local timezone (not UTC) to account for intervals than span a
daylight savings time boundary. This is already handled for timestamp with
timezone types, and not needed for IntervalDayTime.

Reviewed By: spershin

Differential Revision: D62811693
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62811693

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Sep 17, 2024
Summary:
Pull Request resolved: facebookincubator#11017

For timestamps plus or minus intervals, the arithmetic needs to be
done at the local timezone (not UTC) to account for intervals than span a
daylight savings time boundary. This is already handled for timestamp with
timezone types, and not needed for IntervalDayTime.

Reviewed By: spershin

Differential Revision: D62811693
Copy link
Contributor

@spershin spershin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Looks good, few "[Ubuntu debug]" tests are failing (hard to see which ones, as usual).
Double-check that's not new tests.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62811693

pedroerp added a commit to pedroerp/velox-1 that referenced this pull request Sep 17, 2024
Summary:
Pull Request resolved: facebookincubator#11017

For timestamps plus or minus intervals, the arithmetic needs to be
done at the local timezone (not UTC) to account for intervals than span a
daylight savings time boundary. This is already handled for timestamp with
timezone types, and not needed for IntervalDayTime.

Reviewed By: spershin

Differential Revision: D62811693
Summary:
Pull Request resolved: facebookincubator#11017

For timestamps plus or minus intervals, the arithmetic needs to be
done at the local timezone (not UTC) to account for intervals than span a
daylight savings time boundary. This is already handled for timestamp with
timezone types, and not needed for IntervalDayTime.

Reviewed By: spershin

Differential Revision: D62811693
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62811693

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d8b60db.

Copy link

Conbench analyzed the 1 benchmark run on commit d8b60db6.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants