Skip to content

[Data] Delta DataSource V2: partition_filters value follow-ups #68779

Backlog

Description

@abhishekverma-ray

Description

Follow-ups to #68330, which applies read_delta's partition_filters on the Delta DataSource V2 reader. #68330 casts filter values to the column's type with PyArrow. I compared the files V2 picks with V1's (deltalake's) picks for 1,028 filters, on deltalake 1.5.0 and 1.6.6. Two changes were left; the first is now done in #68330:

  1. Convert UTC offsets instead of raising. Done in [Data][Delta DSv2][7/11] Apply partition_filters in the Delta DataSourceV2 reader #68330: PyArrow's cast converts the offset to UTC, as deltalake 1.6.6 does (1.5 ignores the offset).
  2. A NaN partition value under > / >=. deltalake 1.6.6 orders NaN above every number, so x > 1.5 keeps a NaN partition. Ray's expressions follow IEEE and drop it. Either match deltalake (OR is_nan for float columns under > / >=) or document the difference.

Out of scope: NaN filter values stay rejected. deltalake 1.6.6 treats NaN as equal to NaN, while Ray's expressions don't, so 19 of the 1,028 filters would pick different files.

Use case

partition_filters should pick the same files on V2 as on V1, so that making V2 the default doesn't change which rows a read returns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

data

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions