Skip to content

Suppress invalid ErrorProne warnings related to calling getNano metho…#2999

Closed
kbendick wants to merge 2 commits intoapache:masterfrom
kbendick:add-get-nano-suppressions
Closed

Suppress invalid ErrorProne warnings related to calling getNano metho…#2999
kbendick wants to merge 2 commits intoapache:masterfrom
kbendick:add-get-nano-suppressions

Conversation

@kbendick
Copy link
Contributor

@kbendick kbendick commented Aug 19, 2021

…ds without nearby getSeconds calls

As we set nanos specifically in a field, these warning do not apply. Remove them from the logs.

Also removed one instance of it in hive3/src/main/java/org/apache/iceberg/mr/hive/serde/objectinspector/IcebergTimestampObjectInspectorHive3.#getPrimitiveJavaObject. I checked manually in a scala shell with the hive classes in it (placing the Iceberg jar on the classpath) that the call to getNanos is correct.

@github-actions github-actions bot added the hive label Aug 20, 2021
@kbendick kbendick closed this Aug 16, 2022
@kbendick kbendick deleted the add-get-nano-suppressions branch August 16, 2022 18:06
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.

1 participant

Comments