QueryAsset
class great_expectations.datasource.fluent.sql_datasource.QueryAsset(*, name: str, type: typing.Literal['query'] = 'query', id: <pydantic.v1.fields.DeferredType object at 0x7fd9fa2319a0> = None, order_by: <pydantic.v1.fields.DeferredType object at 0x7fd9fa231a60> = None, batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7fd9fa231b80> = None, batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7fd9fa231d00> = None, query: str)#
add_batch_definition(name: str, partitioner: Optional[great_expectations.core.batch_definition.PartitionerT] = None) great_expectations.core.batch_definition.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
- Returns:
The new batch definition.
- Return type:
add_batch_definition_daily(name: str, column: str, sort_ascending: bool = True) BatchDefinition #
add_batch_definition_monthly(name: str, column: str, sort_ascending: bool = True)