Skip to content

Commit

Permalink
update test for roundtrip
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Aug 30, 2023
1 parent d47144e commit 0a1ad2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/python/tests/test_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ def test_tfrecord_parsing(tmp_path):

assert table == expected_data

# Can roundtrip to lance
dataset_uri = tmp_path / "dataset"
dataset = lance.write_dataset(table, dataset_uri)
assert dataset.schema == expected_data.schema
assert dataset.to_table() == expected_data


def test_tfrecord_parsing_nulls(tmp_path):
# Make sure we don't trip up on missing values
Expand Down

0 comments on commit 0a1ad2e

Please sign in to comment.