openinx commented on a change in pull request #3477:
URL: https://github.com/apache/iceberg/pull/3477#discussion_r747939272
##########
File path:
flink/v1.13/flink/src/main/java/org/apache/iceberg/flink/data/FlinkAvroReader.java
##########
@@ -63,6 +65,13 @@ public RowData read(RowData reuse, Decoder decoder) throws
IOException {
return DecoderResolver.resolveAndRead(decoder, readSchema, fileSchema,
reader, reuse);
}
+ @Override
+ public void setRowPositionSupplier(Supplier<Long> posSupplier) {
Review comment:
Others from Chinese Iceberg group also encountered this bug, they are
stacktraces are the following:
```
Caused by: java.lang.NullPointerException
at org.apache.iceberg.data.DeleteFilter.pos(DeleteFilter.java:108)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at
org.apache.iceberg.deletes.Deletes$PositionSetDeleteFilter.shouldKeep(Deletes.java:157)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at org.apache.iceberg.util.Filter$Iterator.shouldKeep(Filter.java:49)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at org.apache.iceberg.io.FilterIterator.advance(FilterIterator.java:67)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at org.apache.iceberg.io.FilterIterator.hasNext(FilterIterator.java:50)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at org.apache.iceberg.io.FilterIterator.advance(FilterIterator.java:65)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at org.apache.iceberg.io.FilterIterator.hasNext(FilterIterator.java:50)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at
org.apache.iceberg.flink.source.DataIterator.updateCurrentIterator(DataIterator.java:100)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at
org.apache.iceberg.flink.source.DataIterator.hasNext(DataIterator.java:84)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at
org.apache.iceberg.flink.source.FlinkInputFormat.reachedEnd(FlinkInputFormat.java:104)
~[iceberg-flink-runtime-0.12.1-20211109.jar:?]
at
org.apache.flink.streaming.api.functions.source.InputFormatSourceFunction.run(InputFormatSourceFunction.java:89)
~[flink-dist_2.11-1.12.1.jar:1.12.1]
at
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)
~[flink-dist_2.11-1.12.1.jar:1.12.1]
at
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:66)
~[flink-dist_2.11-1.12.1.jar:1.12.1]
at
org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:241)
~[flink-dist_2.11-1.12.1.jar:1.12.1]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]