Repository navigation
Conversation
| std::map<std::string, DataField> read_by_name_; | ||
| // Field ID -> (zero-based position in the file schema, file field definition). | ||
| std::map<int32_t, std::pair<int32_t, DataField>> data_by_id_; | ||
| std::shared_ptr<VectorSearch> vector_search_; |
There was a problem hiding this comment.
Since FileIndexRead caches file index reader and then precisely fetches the row-number information related to the predicate, I added a ReadRowPositions interface for PreciseFileIndexRead. However, because FileIndexRead can be called with dynamic predicates, predicate_ and mapped_leaves_ are now passed in from outside rather than being fixed when read is created. I haven’t modified the vector_search_ / full_text_search_ logic yet, but in fact this part should also be passed dynamically via CreateReader instead of being fixed when constructing FileIndexRead. Moreover, creating the reader and performing precise predicate matching could potentially be split into two classes with clearer single responsibilities. A refactor may be needed later. @lszskye
Purpose
Linked issue: close #557
Allow external engines to update append tables by locating live physical rows, appending replacement rows, and committing deletion vectors together with the appended files.
FileIndexReadqueries that reuse per-file readers and historical DV across predicates. Reuse metadata statistics and the existing precise read path.DeletionVectorWrite::PrepareCommitto merge new deletion positions with historical DV at one base snapshot and return commit messages.Tests
API and Format
Add public
FileIndexRead,FileRowSelection, andDeletionVectorWriteAPIs without exposingBinaryRow.DataSplit::GetFileListreports snapshot DV cardinality when available.No storage format or protocol changes.
Documentation
Document the new APIs and the append/DV update workflow, including supported table modes and serialization requirements.
Generative AI tooling
Generated-by: OpenAI Codex (GPT-6)