diff --git a/great_expectations/data_context/data_context/abstract_data_context.py b/great_expectations/data_context/data_context/abstract_data_context.py index d0ff262b443e..86b3657767f7 100644 --- a/great_expectations/data_context/data_context/abstract_data_context.py +++ b/great_expectations/data_context/data_context/abstract_data_context.py @@ -541,6 +541,9 @@ def checkpoint_store(self) -> CheckpointStore: @property @public_api def data_sources(self) -> DataSourceManager: + """ + Responsible for basic CRUD operations on a context's DataSources. + """ return self._data_sources @property diff --git a/great_expectations/datasource/fluent/data_asset/path/directory_asset.py b/great_expectations/datasource/fluent/data_asset/path/directory_asset.py index 449f6dfb4a24..14c5c30196f5 100644 --- a/great_expectations/datasource/fluent/data_asset/path/directory_asset.py +++ b/great_expectations/datasource/fluent/data_asset/path/directory_asset.py @@ -45,6 +45,16 @@ class DirectoryDataAsset(PathDataAsset[DatasourceT, ColumnPartitioner], Generic[ @public_api def add_batch_definition_daily(self, name: str, column: str) -> BatchDefinition: + """ + Add a BatchDefinition which creates a single batch for each day in the directory. + + Args: + name: Name of the batch definition. + column: Column to partition on. + + Returns: + A BatchDefinition that is partitioned daily. + """ # todo: test column return self.add_batch_definition( name=name, @@ -55,6 +65,16 @@ def add_batch_definition_daily(self, name: str, column: str) -> BatchDefinition: @public_api def add_batch_definition_monthly(self, name: str, column: str) -> BatchDefinition: + """ + Add a BatchDefinition which creates a single batch for each month in the directory. + + Args: + name: Name of the batch definition. + column: Column to partition on. + + Returns: + A BatchDefinition that is partitioned monthly. + """ # todo: test column return self.add_batch_definition( name=name, @@ -65,6 +85,16 @@ def add_batch_definition_monthly(self, name: str, column: str) -> BatchDefinitio @public_api def add_batch_definition_yearly(self, name: str, column: str) -> BatchDefinition: + """ + Add a BatchDefinition which creates a single batch for each year in the directory. + + Args: + name: Name of the batch definition. + column: Column to partition on. + + Returns: + A BatchDefinition that is partitioned year. + """ # todo: test column return self.add_batch_definition( name=name,