Skip to content

Commit

Permalink
Improve fixture readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiPatiakin committed Dec 12, 2024
1 parent 7a0f5e9 commit 4ce3d9a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/data/iceberg/default.db/iceberg_table_2/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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`

0 comments on commit 4ce3d9a

Please sign in to comment.