Skip to content

How to move Iceberg table from one location to another #3142

@cccs-jc

Description

@cccs-jc

I'm using the directory based Iceberg catalogue (Hadoop based)

I've put my files into

/iceberg_src/db/table1

I would like to move table1 into another directory based Iceberg catalogue

/iceberg_dst/db2

I can't use linux mv command to move the table1 directory into /iceberg_dst/db2. Iceberg keeps full paths of the data files in it's metadata files and manifest avro files.

Is there an Iceberg command to move a table this way, which would update the metadata and manifests?
Preferably in pyspark or SQL.
Thanks

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