BigData / Apache Hudi Interview Questions
Explain the internal working of Hudi's incremental query mechanism?
Incremental queries work because the timeline already records, instant by instant, exactly which files were touched by each commit — so "what changed between commit A and commit B" is a metadata lookup, not a data scan.
Given a begin and end commit time, Hudi reads the timeline's metadata for every instant in that range and collects the specific files each one touched — base files for CoW, log blocks for MoR. It then reads only those files rather than the entire table, and returns the resulting records to the caller. This is why an incremental query's cost tracks the amount of change rather than total table size: the timeline metadata already tells Hudi precisely where to look, without any full scan.
More Related questions...