Skip to content

try 1.11.0 rc4#42

Open
kevinjqliu wants to merge 14 commits into
mainfrom
kevinjqliu/test-iceberg-rc
Open

try 1.11.0 rc4#42
kevinjqliu wants to merge 14 commits into
mainfrom
kevinjqliu/test-iceberg-rc

Conversation

@kevinjqliu

Copy link
Copy Markdown
Owner

Rationale for this change

Are these changes tested?

Are there any user-facing changes?

gemini-code-assist[bot]

This comment was marked as off-topic.

@kevinjqliu kevinjqliu force-pushed the kevinjqliu/test-iceberg-rc branch from f8cc523 to b819d4b Compare May 8, 2026 18:38
dependabot Bot and others added 14 commits May 10, 2026 13:28
# Rationale for this change

- Relates to apache/iceberg#14869

## Are these changes tested?

tests/catalog/test_rest.py contains new tests.

## Are there any user-facing changes?

This PR adds a new `register_view` method to `catalog`. 

<!-- In the case of user-facing changes, please add the changelog label.
-->
# Rationale for this change

`test_write_optional_list` uses `create_table_if_not_exists` and then
asserts exact row counts (2 after the first append, 4 after the second).
The table is reused across runs, so a second invocation against the same
docker-compose stack accumulates rows — counts become 6, 10, 14, … and
the asserts fail.

CI hides this because it spins up a fresh `docker-compose-integration`
stack for every job. Locally it bites anyone who runs `make
test-integration-exec` twice without `make test-integration-cleanup` in
between.

Fix: drop the table at the start so the test always starts from a clean
slate, matching the `drop-then-create` pattern used by `_create_table()`
for every other write test in this module.

# Are these changes tested?

Yes — verified locally that the test now passes when run twice
back-to-back without resetting the docker stack:

```bash
docker compose -f dev/docker-compose-integration.yml up -d --wait
uv run python dev/provision.py
uv run python -m pytest tests/integration/test_writes/test_writes.py::test_write_optional_list -m integration  # PASS
uv run python -m pytest tests/integration/test_writes/test_writes.py::test_write_optional_list -m integration  # PASS (was previously: 8 == 2)
```

Full `tests/integration/test_writes/test_writes.py` suite: 122 passed, 1
skipped.

# Are there any user-facing changes?

No.

---

Noticed while preparing the PR for apache#2152 (`RecordBatchReader` streaming
append).

Co-authored-by: Paul Mathew <paul.mathew@aircall.io>
Closes apache#3328

# Rationale for this change
`pyiceberg_example.ipynb` and `spark_integration_example.ipynb` had no
automated test coverage. Breaking changes to notebook cells could go
undetected in CI. 

This PR adds papermill-based tests that execute the
real notebooks as-is, so any change to a cell is automatically reflected
in the tests.


## Are these changes tested?
Yes. The tests themselves are the change. Run them with:

```bash
make test-notebook
```

## Are there any user-facing changes?
No.
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@kevinjqliu kevinjqliu force-pushed the kevinjqliu/test-iceberg-rc branch from d3eaa65 to afecbb9 Compare May 15, 2026 15:41
@kevinjqliu kevinjqliu changed the title try 1.11.0 rc1 try 1.11.0 rc4 May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants