Skip to content

Fix some long casting issues - #10580

Merged
amogh-jahagirdar merged 1 commit into
apache:mainfrom
snazy:ij-long-casting
Jul 3, 2024
Merged

amogh-jahagirdar merged 1 commit into
apache:mainfrom
snazy:ij-long-casting

Conversation

@snazy

@snazy snazy commented Jun 28, 2024

Copy link
Copy Markdown
Member

These locations popped up in IntelliJ, and the suggested fixes looked correct, so raising this PR.

@amogh-jahagirdar amogh-jahagirdar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for cleaning this up @snazy. Feel free to raise the Flink backports separately.

return TimestampData.fromLocalDateTime(
Instant.ofEpochSecond(
Math.floorDiv(value, 1000_000), Math.floorMod(value, 1000_000) * 1000)
Math.floorDiv(value, 1000_000), Math.floorMod(value, 1000_000) * 1000L)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just keep in mind you'll want to backport this to the previous Flink versions

@amogh-jahagirdar
amogh-jahagirdar merged commit 3825477 into apache:main Jul 3, 2024
@snazy
snazy deleted the ij-long-casting branch July 4, 2024 09:32
snazy added a commit to snazy/iceberg that referenced this pull request Jul 4, 2024
Backport of apache#10580 and resolve IDE warning/error wrt `floorMod`/`floorDiv`.
jasonf20 pushed a commit to jasonf20/iceberg that referenced this pull request Aug 4, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants