Repository navigation
Commit 443b3a1
[Data] Address review: take Delta partition values from the log
The listing took each file's partition values from its Hive directory and
dropped the ones the log records, so it failed tables the V1 reader reads:
files outside partition directories (the Delta protocol doesn't require
them) and the string `__HIVE_DEFAULT_PARTITION__`, which shares a directory
with null values.
Now the listing reads the values from the `add` actions:
- `partition_values_as_strings` casts them to the table's types and back to
strings with Arrow, the form the reader casts back exactly, as it does a
value parsed from a path.
- `DeltaPartitionPruner` evaluates the pushed-down partition predicate on
those values.
- Both indexers add them to each manifest in `PARTITION_VALUES_COLUMN`,
which the bin packer carries to the read tasks.
The reader that uses it comes with the datasource.
The two directory checks go. Also drop the unused
`list_files_from_file_infos` override and `DeltaWholeFileIndexer`'s
`shuffle_config`, and the unit tests that the `read_delta` tests cover.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abhishek Verma <[email protected]>1 parent 8285ae8 commit 443b3a1
2 files changed
Lines changed: 283 additions & 261 deletions
File tree
- python/ray/data
- _internal/datasource_v2/formats/delta
- tests/unit/datasource_v2
0 commit comments