def test_store_zip_parquet_c(self) -> None: f1, f2 = get_test_framesB() config = StoreConfig( index_depth=1, include_index=True, index_constructors=IndexDate, columns_depth=1, include_columns=True, ) with temp_file('.zip') as fp: st = StoreZipParquet(fp) st.write(((f.name, f) for f in (f1, f2)), config=config) post = tuple( st.read_many( ('a', 'b'), container_type=Frame, config=config, )) self.assertIs(post[0].index.__class__, IndexDate) self.assertIs(post[1].index.__class__, IndexDate)
def test_store_zip_parquet_b(self) -> None: f1, f2, f3 = get_test_framesA() with temp_file('.zip') as fp: for read_max_workers in (1, 2): config = StoreConfig(index_depth=1, include_index=True, columns_depth=1, read_max_workers=read_max_workers) st = StoreZipParquet(fp) st.write((f.name, f) for f in (f1, f2, f3)) post = tuple(st.read_many(('baz', 'bar', 'foo'), config=config)) self.assertEqual(len(post), 3) self.assertEqual(post[0].name, 'baz') self.assertEqual(post[1].name, 'bar') self.assertEqual(post[2].name, 'foo')