Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async glob does not expand brackets [ #17629

Closed
2 tasks done
nameexhaustion opened this issue Jul 15, 2024 · 0 comments · Fixed by #17630
Closed
2 tasks done

Async glob does not expand brackets [ #17629

nameexhaustion opened this issue Jul 15, 2024 · 0 comments · Fixed by #17630
Assignees
Labels
accepted Ready for implementation bug Something isn't working P-low Priority: low python Related to Python Polars

Comments

@nameexhaustion
Copy link
Collaborator

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

@pytest.mark.write_disk()
def test_async_path_expansion_bracket_17629(tmp_path: Path) -> None:
    path = tmp_path / "data.parquet"

    df = pl.DataFrame({"x": 1})
    df.write_parquet(path)

    assert_frame_equal(pl.scan_parquet(tmp_path / "[d]ata.parquet").collect(), df)

Log output

py-polars/tests/unit/io/test_scan.py:664: in test_async_path_expansion_bracket_17629
    assert_frame_equal(pl.scan_parquet(tmp_path / "[d]ata.parquet").collect(), df)
../../.local/lib/python3.11/site-packages/polars/lazyframe/frame.py:1942: in collect
    return wrap_df(ldf.collect(callback))
E   polars.exceptions.ComputeError: expected at least 1 path

Issue description

As title

Expected behavior

Test case passes

Installed versions

1.1.0

@nameexhaustion nameexhaustion added bug Something isn't working python Related to Python Polars accepted Ready for implementation P-low Priority: low labels Jul 15, 2024
@nameexhaustion nameexhaustion self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation bug Something isn't working P-low Priority: low python Related to Python Polars
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant