QueryAsset
class great_expectations.datasource.fluent.sql_datasource.QueryAsset(*, name: str, type: typing.Literal['query'] = 'query', id: <pydantic.v1.fields.DeferredType object at 0x7fcf8da1b580> = None, order_by: <pydantic.v1.fields.DeferredType object at 0x7fcf8da1b640> = None, batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7fcf8da1b760> = None, batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7fcf8da1b8b0> = 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:
BatchDefinition
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) BatchDefinition #
- add_batch_definition_whole_table(name: str)BatchDefinition #
add_batch_definition_yearly(name: str, column: str, sort_ascending: bool = True) BatchDefinition #
- delete_batch_definition(batch_definition: great_expectations.core.batch_definition.BatchDefinition)None #
Delete a batch definition.
- Parameters:
batch_definition (BatchDefinition) – BatchDefinition to delete.