MCPcopy Create free account
hub / github.com/apache/arrow / _check_arrow_roundtrip

Function _check_arrow_roundtrip

python/pyarrow/tests/test_feather.py:120–130  ·  view source on GitHub ↗
(table, path=None, compression=None)

Source from the content-addressed store, hash-verified

118
119
120def _check_arrow_roundtrip(table, path=None, compression=None):
121 if path is None:
122 path = random_path()
123
124 TEST_FILES.append(path)
125 write_feather(table, path, compression=compression)
126 if not os.path.exists(path):
127 raise Exception('file not written')
128
129 result = read_table(path)
130 assert result.equals(table)
131
132
133def _assert_error_on_write(df, exc, path=None, version=2):

Callers 11

test_float_nullsFunction · 0.85
test_integer_no_nullsFunction · 0.85
test_integer_with_nullsFunction · 0.85
test_boolean_nullsFunction · 0.85
test_buffer_bounds_errorFunction · 0.85
test_overwritten_fileFunction · 0.85
test_duplicate_columnsFunction · 0.85
test_nested_typesFunction · 0.85
test_roundtripFunction · 0.85

Calls 5

write_featherFunction · 0.90
read_tableFunction · 0.90
random_pathFunction · 0.85
equalsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected