PowerBITable
class great_expectations.experimental.datasource.PowerBITable(*, name: str, type: Literal['powerbi_table'] = 'powerbi_table', id: Optional[uuid.UUID] = None, order_by: List[great_expectations.datasource.fluent.interfaces.Sorter] = None, batch_metadata: Dict[str, Any] = None, batch_definitions: List[great_expectations.core.batch_definition.BatchDefinition] = None, table: str, fully_qualified_columns: bool = False, num_rows: Optional[int] = None, multiindex_hierarchies: bool = False, mode: Literal['xmla', 'rest', 'onelake'] = 'xmla')#
Microsoft PowerBI Table.
add_batch_definition(name: str, partitioner: Optional[Partitioner] = None, batching_regex: Optional[re.Pattern] = None) BatchDefinition #
Add a BatchDefinition to this DataAsset. BatchDefinition names must be unique within a DataAsset.
If the DataAsset is tied to a DataContext, the BatchDefinition will be persisted.
- Parameters:
name (str) – Name of the new batch definition.
partitioner – Optional Partitioner to partition this BatchDefinition
batching_regex – A Regular Expression used to build batches in path based Assets.
- Returns:
The new batch definition.
- Return type:
BatchDefinition
- delete_batch_definition(batch_definition: great_expectations.core.batch_definition.BatchDefinition)None #
Delete a batch definition.
- Parameters:
batch_definition (BatchDefinition) – BatchDefinition to delete.