Skip to content

Conversation

@kbendick
Copy link
Contributor

@kbendick kbendick commented Oct 11, 2020

This patch fixes the following warning for IntLongMath

/iceberg/flink/src/main/java/org/apache/iceberg/flink/data/FlinkOrcWriters.java:135: warning: [IntLongMath] Expression of type int may overflow before being assigned to a long
      ((LongColumnVector) output).vector[rowId] = millis * 1000;
                                                         ^
    (see https://errorprone.info/bugpattern/IntLongMath)
  Did you mean '((LongColumnVector) output).vector[rowId] = millis * 1000L;'?

@kbendick kbendick changed the title Fix IntLongMath warnings and associated possible integer overflow Fix IntLongMath warnings Oct 11, 2020
@shardulm94 shardulm94 merged commit fdb068b into apache:master Oct 11, 2020
@shardulm94
Copy link
Contributor

Thanks @kbendick!

anuragmantri added a commit to anuragmantri/iceberg that referenced this pull request Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants