Skip to contents

Reads the current partitioning keys from the DuckLake metadata catalog.

Usage

get_table_partitions(table_name = NULL, ducklake_name = NULL)

Arguments

table_name

Optional table name to filter to a single table.

ducklake_name

Optional name of the attached DuckLake catalog. If NULL, the current database is used.

Value

A data frame with one row per partition key: table_name, partition_key_index, column_name, and transform (e.g. "identity" or "year"). Zero rows when nothing is partitioned.

Examples

if (FALSE) { # \dontrun{
# All partitioned tables in the lake
get_table_partitions()

# Keys for one table
get_table_partitions("events")
} # }