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

Function _check_arrow_roundtrip

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

Source from the content-addressed store, hash-verified

111
112
113def _check_arrow_roundtrip(table, path=None, compression=None):
114 if path is None:
115 path = random_path()
116
117 TEST_FILES.append(path)
118 write_feather(table, path, compression=compression)
119 if not os.path.exists(path):
120 raise Exception('file not written')
121
122 result = read_table(path)
123 assert result.equals(table)
124
125
126def _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