I think this is probably just an oversight. It would be fine to check that
the UUID matches when reloading the table.

On Fri, Sep 19, 2025 at 2:21 PM Ma, Limin <l...@akamai.com.invalid> wrote:

> Hi All,
>
>
>
> HiveTableOperations (BaseMetastoreTableOperations) does enforce Table UUID
> check when refreshing TableMetadata
>
>
> https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/BaseMetastoreTableOperations.java#L205
>
>
>
> However, RESTTableOperations does not enforce Table UUID check when
> refreshing TableMetadata
>
>
> https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/rest/RESTTableOperations.java#L172
>
>
>
> Is there any reason why they have different behaviors regarding Table
> UUID?
>
> Won’t that potentially cause issues when a table is dropped and recreated
> (but under a new UUID) on the server side, while the client is still
> holding the cached Table with old UUID?
>
>
>
> Thanks,
>
> Limin
>

Reply via email to