tlc.core.objects.tables.generators.random_table#

A table populated with random rows

Module Contents#

Classes#

Class

Description

RandomTable

A table populated with random rows, as specified by a wanted row count and a Schema.

API#

class tlc.core.objects.tables.generators.random_table.RandomTable(url: tlc.core.url.Url | None = None, created: str | None = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, wanted_schema: Any = None, wanted_row_count: int | None = None, init_parameters: Any = None)#

Bases: tlc.core.objects.table.Table

A table populated with random rows, as specified by a wanted row count and a Schema.

The Schema allows for flexible configuration of the random rows, incl.:

  • Numeric value ranges

  • Categorical data

  • Fixed/variable length arrays

  • Nested structures

Parameters:
  • 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.

  • input_tables – A list of Table URLs that are considered direct predecessors in this table’s lineage. This parameter serves as an explicit mechanism for tracking table relationships beyond the automatic lineage tracing typically managed by subclasses.