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

Remove unnecessary computation #15362

Merged

Conversation

findinpath
Copy link
Contributor

@findinpath findinpath commented Dec 10, 2022

Description

The endExclusive variable is derived from dateTime which has 0 nanoseconds.

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Dec 10, 2022
@findinpath findinpath requested review from findepi and ebyhr December 10, 2022 09:49
@findinpath findinpath force-pushed the findinpath/unwrap-date-trunc-cosmetics branch from 2dbe02c to 8ccab25 Compare December 10, 2022 09:49
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

CI is failing

Error:  src/main/java/io/trino/sql/planner/iterative/rule/UnwrapDateTruncInComparison.java:[19,8] (imports) UnusedImports: Unused import - com.google.common.math.LongMath.
Error:  src/main/java/io/trino/sql/planner/iterative/rule/UnwrapDateTruncInComparison.java:[66,15] (imports) UnusedImports: Unused import - io.trino.spi.type.Timestamps.NANOSECONDS_PER_MICROSECOND.
Error:  src/main/java/io/trino/sql/planner/iterative/rule/UnwrapDateTruncInComparison.java:[82,15] (imports) UnusedImports: Unused import - java.math.RoundingMode.UNNECESSARY.

The `endExclusive` variable is derived from `dateTime`
which has `0` nano seconds.
@findinpath findinpath force-pushed the findinpath/unwrap-date-trunc-cosmetics branch from 8ccab25 to 345f12a Compare December 11, 2022 14:54
@findinpath findinpath requested a review from ebyhr December 11, 2022 14:54
@findepi findepi merged commit 8211f70 into trinodb:master Dec 11, 2022
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Dec 11, 2022
@github-actions github-actions bot added this to the 404 milestone Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants