Repository navigation
[Data] Replace the KeyError when a partition field is missing - #66695
iamjustinhsu merged 2 commits into
Conversation
A field declared in `field_types` but absent from a parsed path raised a bare KeyError. Name the missing field and the path instead. Signed-off-by: jackylee-ch <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request improves error handling in the path partition parser by raising a descriptive ValueError when a declared partition field is missing from the parsed path, replacing a previous bare KeyError. A corresponding unit test has been added to verify this behavior. No review comments were provided.
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
|
CI failing |
Sync through upstream commit cd7636d, including the torch-scatter lock refresh in PR ray-project#66713. The original partitioning patch is unchanged relative to upstream. Signed-off-by: jackylee-ch <[email protected]>
|
Synced the branch through #66713 to update the stale |
Description
A partition field declared in
field_typesbut absent from a parsed path raised a bareKeyError:Related issues
None.
Additional information
No open PR touches
partitioning.py. The new regression test fails on the prior code (bareKeyError) and passes with the fix;pre-commitis clean; the fulltest_partitioning.pysuite and bazel run in CI. AI assistance (Claude) was used; I reviewed every changed line.