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 some long casting issues #10580

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Conversation

snazy
Copy link
Member

@snazy snazy commented Jun 28, 2024

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

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

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.

Math.floorDiv(value, 1000_000), Math.floorMod(value, 1000_000) * 1000)
Math.floorDiv(value, 1000_000), Math.floorMod(value, 1000_000) * 1000L)
Copy link
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
50 checks passed
@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`.
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.

None yet

3 participants