Skip to content

Commit

Permalink
move scan into thread
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Apr 2, 2024
1 parent 168cd52 commit 21283b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions py-polars/tests/unit/io/test_lazy_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,8 @@ def test_scan_deadlock_rayon_nested_spawn_15172(

results = [pl.DataFrame()]

lfs = [pl.scan_parquet(path)]

def scan_collect() -> pl.DataFrame:
results[0] = pl.collect_all(lfs)[0]
results[0] = pl.collect_all([pl.scan_parquet(path)])[0]

# Make sure we don't sit there hanging for hours on the broken case
t = Thread(target=scan_collect, daemon=True)
Expand Down

0 comments on commit 21283b6

Please sign in to comment.