Is it possible to specify an order for Flink to re...
# troubleshooting
t
Is it possible to specify an order for Flink to read through a directory of Parquet files?
s
Not out of the box. I had to implement a custom
FileSplitAssigner
and patch the
FileSource
to use it.
t
So this basically means it's impossible to use in the SQL API? But have you noticed a particular order? eg. does it always read files in alphabetical order
Also do you know the default behavior of how different workers go through a directory of files?
s
It’s not impossible, it’s just unordered. Not all use-cases need ordering 🙂
t
if you're running your flink job on historical data, to reproduce results you probably need ordering right
s
Again, not in all use-cases.
✅ 1
t
Do you know if this is the Assigner for files in S3/Hive too?
s
Should be for anything that uses FileSource