Skip to content

Commit

Permalink
Fix failing dataframe tests (no more row id column)
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Oct 7, 2024
1 parent c230971 commit 73902c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rerun_py/tests/unit/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def test_full_view(self) -> None:
batches = view.select()
table = pa.Table.from_batches(batches, batches.schema)

# row, log_time, log_tick, indicator, points, colors
assert table.num_columns == 6
# log_time, log_tick, indicator, points, colors
assert table.num_columns == 5
assert table.num_rows == 2

def test_select_column(self) -> None:
Expand Down Expand Up @@ -72,8 +72,8 @@ def test_view_syntax(self) -> None:
batches = view.select()
table = pa.Table.from_batches(batches, batches.schema)

# row, log_time, log_tick, points
assert table.num_columns == 4
# log_time, log_tick, points
assert table.num_columns == 3
assert table.num_rows == 2

bad_content_expressions = [
Expand All @@ -85,7 +85,7 @@ def test_view_syntax(self) -> None:
view = self.recording.view(index="log_time", contents=expr)
batches = view.select()

# row, log_time, log_tick
# log_time, log_tick
table = pa.Table.from_batches(batches, batches.schema)
assert table.num_columns == 3
assert table.num_columns == 2
assert table.num_rows == 0

0 comments on commit 73902c7

Please sign in to comment.