Skip to content

Commit

Permalink
Test scan with projected-out row index
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Jul 9, 2024
1 parent dfd644a commit b00a8ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/cudf_polars/tests/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,13 @@ def test_scan_unsupported_raises(tmp_path):
df.write_ndjson(tmp_path / "df.json")
q = pl.scan_ndjson(tmp_path / "df.json")
assert_ir_translation_raises(q, NotImplementedError)


def test_scan_row_index_projected_out(tmp_path):
df = pl.DataFrame({"a": [1, 2, 3]})

df.write_parquet(tmp_path / "df.pq")

q = pl.scan_parquet(tmp_path / "df.pq").with_row_index().select(pl.col("a"))

assert_gpu_result_equal(q)

0 comments on commit b00a8ea

Please sign in to comment.