QueryAsset
class great_expectations.datasource.fluent.sql_datasource.QueryAsset(*, name: str, type: typing.Literal['query'] = 'query', id: <pydantic.v1.fields.DeferredType object at 0x7fe345d95e80> = None, order_by: <pydantic.v1.fields.DeferredType object at 0x7fe345d95eb0> = None, batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7fe345d96000> = None, batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7fe345d961b0> = None, query: str)#
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(name: str)None #
Delete a batch definition.
- Parameters
name (str) – Name of the BatchDefinition to delete.
- get_batch_definition(name: str)great_expectations.core.batch_definition.BatchDefinition #
Get a batch definition.
- Parameters
name (str) – Name of the BatchDefinition to get.
- Raises
KeyError – If the BatchDefinition does not exist.