diff --git a/apis/python/tests/test_soma_dataframe.py b/apis/python/tests/test_soma_dataframe.py index 1ea1706e9a..76f4f27564 100644 --- a/apis/python/tests/test_soma_dataframe.py +++ b/apis/python/tests/test_soma_dataframe.py @@ -179,6 +179,23 @@ def _check_tbl(tbl, col_names, ids): len(schema.names) if col_names is None else len(col_names) ) assert tbl.num_rows == (n_data if ids is None else len(ids)) + print("") + print("COL_NAMES", col_names) + r = tbl.schema + i = pa.schema( + [ + schema.field(f) + for f in (col_names if col_names is not None else schema.names) + ] + ) + print("READBACK SCHEMA", type(tbl)) + print(r) + print("INPUT SCHEMA") + print(i) + print("CMP", r==i) + + print("") + assert tbl.schema == pa.schema( [ schema.field(f)