(root_path)
| 3924 | |
| 3925 | |
| 3926 | def _create_parquet_dataset_partitioned(root_path): |
| 3927 | table = pa.table([ |
| 3928 | pa.array(range(20)), pa.array(np.random.randn(20)), |
| 3929 | pa.array(np.repeat(['a', 'b'], 10))], |
| 3930 | names=["f1", "f2", "part"] |
| 3931 | ) |
| 3932 | table = table.replace_schema_metadata({"key": "value"}) |
| 3933 | pq.write_to_dataset(table, str(root_path), partition_cols=['part']) |
| 3934 | return _create_metadata_file(root_path), table |
| 3935 | |
| 3936 | |
| 3937 | @pytest.mark.parquet |
no test coverage detected