Skip to content

Conversation

@kryvashek
Copy link
Member

Which issue does this PR close?

Helps to close [censored].

What changes are included in this PR?

A function which returns fresh table version from catalog if it is provided within IcebergTableProvider. Otherwise the inner table clone is being returned.
This function is used inside TableProvider::scan implementation for IcebergTableProvider.

Are these changes tested?

They are tested manually and (partially) via integration tests in the main application.

@kryvashek kryvashek requested review from Drevoed and psergee December 3, 2025 10:35
@kryvashek kryvashek self-assigned this Dec 3, 2025
Copy link

@Drevoed Drevoed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pub(crate) fn table_to_use(&self) -> error::Result<table::Table> {
match self.catalog {
Some(ref catalog) => {
futures::executor::block_on(catalog.load_table(self.table.identifier()))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading a table from local disk or shared drive, or S3 may take some time. Using block_on would block our runtime thread for that duration. Can we instead use async to avoid blocking?

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