Skip to content

Commit

Permalink
[Data] Remove _default_metadata_providers (ray-project#47575)
Browse files Browse the repository at this point in the history
_default_metadata_providers adds a layer of indirection.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: ujjawal-khare <[email protected]>
  • Loading branch information
bveeramani authored and ujjawal-khare committed Oct 15, 2024
1 parent 47d9b0d commit 747b6f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ray/data/tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,9 @@ def test_csv_read_filter_non_csv_file(ray_start_regular_shared, tmp_path):

# Directory of CSV files.
ds = ray.data.read_csv(tmp_path)
assert ds.to_pandas().equals(pd.concat([df, df], ignore_index=True))
actual_data = sorted(ds.to_pandas().itertuples(index=False))
expected_data = sorted(pd.concat([df, df]).itertuples(index=False))
assert actual_data == expected_data, (actual_data, expected_data)

# Non-CSV file in Parquet format.
table = pa.Table.from_pandas(df)
Expand Down

0 comments on commit 747b6f5

Please sign in to comment.