A table that is rolled up from another table.

Module Contents#





A table that is rolled up from another table.


class tlc.core.objects.tables.from_table.rolled_up_table.RolledUpTable(url: tlc.core.url.Url | None = None, created: str | None = None, description: str | None = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, override_table_rows_schema: Any = None, input_table_url: tlc.core.url.Url | tlc.core.objects.table.Table | None = None, roll_up_property: str | None = None, roll_up_columns: list[str] | None = None, init_parameters: Any = None)#

Bases: tlc.core.objects.tables.in_memory_rows_table._InMemoryRowsTable

A table that is rolled up from another table.

The rows of the rolled-up table are created by grouping the rows of the input table by the roll-up property.

  • roll_up_property – The property to roll up.

  • roll_up_columns – List of top-level columns that should be rolled up alongside the roll-up property.

  • url – The URL of the table.

  • created – The creation time of the table.

  • description – The description of the table.

  • row_cache_url – The URL of the row cache.

  • row_cache_populated – Whether the row cache is populated.

  • override_table_rows_schema – The schema to override the table rows schema.

  • init_parameters – The initial parameters of the table.

static set_nested_value(row_data: dict[str, Any], path: str, value: Any) None#
static get_nested_value_with_rollup_columns(row_data: dict[str, Any], roll_up_property: str, rollup_columns: list[str]) Any#

Returns the value of the roll-up property, with the roll-up columns added to the leaf node.