Skip to content

How to force iceberg table to create an empty snapshot #2177

@fusion2222

Description

@fusion2222

Question

Hello. I have a function which creates a new iceberg table. Now is there any possibility how to force an iceberg table to create initial snapshot? Even if there are no data present.

Simplified code:

catalog = catalog.load_table(...)
table = catalog.create_table(...)
table.snapshots()  # returns empty list

(Rationale is, that I am using a 3rd party tool, which fails if there is no snapshot yet present. I also have no power over this 3rd party tool).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions