Skip to contents

Returns the effective data inlining row limit. When no table- or schema-level override is configured, the global DuckDB default is returned.

Usage

get_inlining_row_limit(
  table_name = NULL,
  schema_name = NULL,
  ducklake_name = NULL
)

Arguments

table_name

Optional table name to query the table-level override, optionally qualified as "schema.table".

schema_name

Optional schema name to query the schema-level override.

ducklake_name

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

Value

An integer: the effective inlining row limit.

Examples

lake_dir <- tempfile("inline_get_lake_")
dir.create(lake_dir)
attach_ducklake("inline_get_lake", lake_path = lake_dir)
create_table(mtcars, "cars")

set_inlining_row_limit(100, table_name = "cars")
#> Data inlining row limit for table {.val cars} set to 100.

# Global default
get_inlining_row_limit()
#> [1] 10

# Table-specific limit
get_inlining_row_limit(table_name = "cars")
#> [1] 100

detach_ducklake("inline_get_lake", shutdown = TRUE)
unlink(lake_dir, recursive = TRUE)