Skip to content

Commit

Permalink
test limit offset
Browse files Browse the repository at this point in the history
  • Loading branch information
changhiskhan committed Jan 23, 2023
1 parent ada28fb commit 60bae41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/pylance/python/tests/test_lance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_table_roundtrip(tmp_path):

one_col = dataset.to_table(columns=['a'])
assert one_col == tbl.select(['a'])
# TODO enable offset limit in Scan ExecNode

table = dataset.to_table(columns=['a'], limit=20)
# assert len(table) == 20
# with_offset = dataset.to_table(columns=['a'], offset=10, limit=10)
# assert with_offset == table[10:]
assert len(table) == 20
with_offset = dataset.to_table(columns=['a'], offset=10, limit=10)
assert with_offset == table[10:]


def test_input_types(tmp_path):
Expand Down

0 comments on commit 60bae41

Please sign in to comment.