apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.43k stars 955 forks source link

[core] Make FormatReaderFactory return FileRecordReader to reduce cast #4512

Closed JingsongLi closed 1 week ago

JingsongLi commented 1 week ago

Purpose

In ApplyBitmapIndexRecordReader and ApplyBitmapIndexRecordReader, they will check the type of iterator which should be FileRecordIterator, it is always FileRecordIterator, and we should garrantee it by interface.

So we let FormatReaderFactory return FileRecordReader, and all related readers should be FileRecordReaders.

Tests

API and Format

Documentation