Skip to content

Conversation

@sgrebnov
Copy link

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

Are these changes tested?

## Which issue does this PR close?
apache#1868

## What changes are included in this PR?

As referenced in the issue, the optimistic concurrency was not working
correctly as we need to check the glue table version has not incremented
before we make our update, so we can get back the error if there is a
concurrent modification.

This changes the `update_table` to properly handle this case.

Also changed the `load_table` to `load_table_with_version_id`, and
`load_table` now just uses that.

<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->

## Are these changes tested?

I have tested them using my specific setup with concurrent writers to
iceberg tables in aws glue, but not generically. Writing a test case
doesn't seem feasible as one needs a glue table.
<!--
Specify what test covers (unit test, integration test, etc.).

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

---------

Co-authored-by: Jem Bishop <jem@lo.tech>
# Conflicts:
#	crates/catalog/glue/src/catalog.rs
@sgrebnov sgrebnov force-pushed the sgrebnov/s3tables-write branch from e1386e6 to 0e6ccd0 Compare November 29, 2025 05:20
@sgrebnov sgrebnov merged commit 5ab32ec into spiceai-0.7.0 Nov 29, 2025
17 of 18 checks passed
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.

3 participants