From 4ce3d9a362bcbc192be5f8e88ff4fa2ce7ed061e Mon Sep 17 00:00:00 2001 From: Sergei Patiakin Date: Thu, 12 Dec 2024 10:46:05 +0100 Subject: [PATCH] Improve fixture readme --- tests/data/iceberg/default.db/iceberg_table_2/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/data/iceberg/default.db/iceberg_table_2/README.md b/tests/data/iceberg/default.db/iceberg_table_2/README.md index e28c9176..6016d37b 100644 --- a/tests/data/iceberg/default.db/iceberg_table_2/README.md +++ b/tests/data/iceberg/default.db/iceberg_table_2/README.md @@ -1,4 +1,6 @@ -This table was generated with the following code: +To generate this fixture data: + +1. Run the following code: ```python import pyarrow as pa @@ -30,3 +32,8 @@ pa_table_data = pa.Table.from_pylist([ ], schema=iceberg_table.schema().as_arrow()) iceberg_table.append(df=pa_table_data) ``` + +2. Manually rename file `00000-*-metadata.json` to `v0.metadata.json` +3. Manually rename file `00001-*-metadata.json` to `v1.metadata.json` +4. Replace `00000-*-metadata.json` with `v0.metadata.json` in the `metadata-log` key in `v1.metadata.json` +5. Create version hint file: `echo -n 1 > version-hint.text`