Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Nov 7, 2024
1 parent 6f73d94 commit f8351d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py-polars/tests/unit/io/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,11 @@ def test_predicate_hive_pruning_with_cast(tmp_path: Path) -> None:

(p := (tmp_path / "date=2024-01-02")).mkdir()

(p / "1").write_text("invalid file")
# Write an invalid parquet file that will cause errors if polars attempts to
# read it.
# This works because `scan_parquet()` only looks at the first file during
# schema inference.
(p / "1").write_text("not a parquet file")

expect = pl.DataFrame({"x": 1, "date": datetime(2024, 1, 1).date()})

Expand Down

0 comments on commit f8351d7

Please sign in to comment.