rewrite

package
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IcebergTablePaths

func IcebergTablePaths(dataProductPath string) ([]string, error)

IcebergTablePaths finds Iceberg table directories inside a built SAL data product, at any depth: the data product itself when it is a table root, or the `<namespace>/<table>` directories `sal build` and `sal upload` lay out. It is pkg.IcebergTablePaths with an error for a directory holding none, so every command agrees on what a table is.

func RewriteIcebergMetadataPath

func RewriteIcebergMetadataPath(tablePath string, oldPath string, newPath string) (int, error)

RewriteIcebergMetadataPath updates references to one metadata file path inside Iceberg metadata files.

func RewriteIcebergTableRoot

func RewriteIcebergTableRoot(tablePath string, newRoot string) (int, error)

RewriteIcebergTableRoot updates Iceberg metadata files so a copied table can be read from newRoot.

Types

type RewriteCmd

type RewriteCmd struct {
	NewTableRoot string `arg:"--new-table-root" help:"rename the root path of the SAL data product"`
}

func (*RewriteCmd) Run

func (cfg *RewriteCmd) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL