I have the issue when I created the solution for validation
and when batch loops I get too much output.
This is the synthax I have used.
validations = [
{ābatch_requestā:batches, āexpectation_suite_nameā: āexpectation_suite_nameā}
for batch in batches
]
validations
This is my output.
[{ābatch_requestā: [Batch(datasource=SQLDatasource(type=āsqlā, name=āde-c2w3a1-db-datasourceā, id=None, assets=[TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None)], connection_string=ConfigStr(ā{MYSQL_CONNECTION_STRING}'), create_temp_table=False, kwargs={}), data_asset=TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None), batch_request=BatchRequest(datasource_name='de-c2w3a1-db-datasource', data_asset_name='de-c2w3a1-trips', options={'vendor_id': 1}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861700>, id='de-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_1', metadata={'vendor_id': 1}, batch_markers={'ge_load_time': '20240930T204247.156885Z'}, batch_spec={'type': 'table', 'data_asset_name': 'de-c2w3a1-trips', 'table_name': 'trips', 'schema_name': None, 'batch_identifiers': {'vendor_id': 1}, 'splitter_method': 'split_on_column_value', 'splitter_kwargs': {'column_name': 'vendor_id'}}, batch_definition={'datasource_name': 'de-c2w3a1-db-datasource', 'data_connector_name': 'fluent', 'data_asset_name': 'de-c2w3a1-trips', 'batch_identifiers': {'vendor_id': 1}}),
Batch(datasource=SQLDatasource(type='sql', name='de-c2w3a1-db-datasource', id=None, assets=[TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None)], connection_string=ConfigStr('{MYSQL_CONNECTION_STRING}ā), create_temp_table=False, kwargs={}), data_asset=TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None), batch_request=BatchRequest(datasource_name=āde-c2w3a1-db-datasourceā, data_asset_name=āde-c2w3a1-tripsā, options={āvendor_idā: 2}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861f10>, id=āde-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_2ā, metadata={āvendor_idā: 2}, batch_markers={āge_load_timeā: ā20240930T204247.158778Zā}, batch_spec={ātypeā: ātableā, ādata_asset_nameā: āde-c2w3a1-tripsā, ātable_nameā: ātripsā, āschema_nameā: None, ābatch_identifiersā: {āvendor_idā: 2}, āsplitter_methodā: āsplit_on_column_valueā, āsplitter_kwargsā: {ācolumn_nameā: āvendor_idā}}, batch_definition={ādatasource_nameā: āde-c2w3a1-db-datasourceā, ādata_connector_nameā: āfluentā, ādata_asset_nameā: āde-c2w3a1-tripsā, ābatch_identifiersā: {āvendor_idā: 2}}),
Batch(datasource=SQLDatasource(type=āsqlā, name=āde-c2w3a1-db-datasourceā, id=None, assets=[TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None)], connection_string=ConfigStr(ā{MYSQL_CONNECTION_STRING}'), create_temp_table=False, kwargs={}), data_asset=TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None), batch_request=BatchRequest(datasource_name='de-c2w3a1-db-datasource', data_asset_name='de-c2w3a1-trips', options={'vendor_id': 4}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd08611f0>, id='de-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_4', metadata={'vendor_id': 4}, batch_markers={'ge_load_time': '20240930T204247.161007Z'}, batch_spec={'type': 'table', 'data_asset_name': 'de-c2w3a1-trips', 'table_name': 'trips', 'schema_name': None, 'batch_identifiers': {'vendor_id': 4}, 'splitter_method': 'split_on_column_value', 'splitter_kwargs': {'column_name': 'vendor_id'}}, batch_definition={'datasource_name': 'de-c2w3a1-db-datasource', 'data_connector_name': 'fluent', 'data_asset_name': 'de-c2w3a1-trips', 'batch_identifiers': {'vendor_id': 4}})],
'expectation_suite_name': 'expectation_suite_name'},
{'batch_request': [Batch(datasource=SQLDatasource(type='sql', name='de-c2w3a1-db-datasource', id=None, assets=[TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None)], connection_string=ConfigStr('{MYSQL_CONNECTION_STRING}ā), create_temp_table=False, kwargs={}), data_asset=TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None), batch_request=BatchRequest(datasource_name=āde-c2w3a1-db-datasourceā, data_asset_name=āde-c2w3a1-tripsā, options={āvendor_idā: 1}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861700>, id=āde-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_1ā, metadata={āvendor_idā: 1}, batch_markers={āge_load_timeā: ā20240930T204247.156885Zā}, batch_spec={ātypeā: ātableā, ādata_asset_nameā: āde-c2w3a1-tripsā, ātable_nameā: ātripsā, āschema_nameā: None, ābatch_identifiersā: {āvendor_idā: 1}, āsplitter_methodā: āsplit_on_column_valueā, āsplitter_kwargsā: {ācolumn_nameā: āvendor_idā}}, batch_definition={ādatasource_nameā: āde-c2w3a1-db-datasourceā, ādata_connector_nameā: āfluentā, ādata_asset_nameā: āde-c2w3a1-tripsā, ābatch_identifiersā: {āvendor_idā: 1}}),
Batch(datasource=SQLDatasource(type=āsqlā, name=āde-c2w3a1-db-datasourceā, id=None, assets=[TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None)], connection_string=ConfigStr(ā{MYSQL_CONNECTION_STRING}'), create_temp_table=False, kwargs={}), data_asset=TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None), batch_request=BatchRequest(datasource_name='de-c2w3a1-db-datasource', data_asset_name='de-c2w3a1-trips', options={'vendor_id': 2}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861f10>, id='de-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_2', metadata={'vendor_id': 2}, batch_markers={'ge_load_time': '20240930T204247.158778Z'}, batch_spec={'type': 'table', 'data_asset_name': 'de-c2w3a1-trips', 'table_name': 'trips', 'schema_name': None, 'batch_identifiers': {'vendor_id': 2}, 'splitter_method': 'split_on_column_value', 'splitter_kwargs': {'column_name': 'vendor_id'}}, batch_definition={'datasource_name': 'de-c2w3a1-db-datasource', 'data_connector_name': 'fluent', 'data_asset_name': 'de-c2w3a1-trips', 'batch_identifiers': {'vendor_id': 2}}),
Batch(datasource=SQLDatasource(type='sql', name='de-c2w3a1-db-datasource', id=None, assets=[TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None)], connection_string=ConfigStr('{MYSQL_CONNECTION_STRING}ā), create_temp_table=False, kwargs={}), data_asset=TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None), batch_request=BatchRequest(datasource_name=āde-c2w3a1-db-datasourceā, data_asset_name=āde-c2w3a1-tripsā, options={āvendor_idā: 4}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd08611f0>, id=āde-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_4ā, metadata={āvendor_idā: 4}, batch_markers={āge_load_timeā: ā20240930T204247.161007Zā}, batch_spec={ātypeā: ātableā, ādata_asset_nameā: āde-c2w3a1-tripsā, ātable_nameā: ātripsā, āschema_nameā: None, ābatch_identifiersā: {āvendor_idā: 4}, āsplitter_methodā: āsplit_on_column_valueā, āsplitter_kwargsā: {ācolumn_nameā: āvendor_idā}}, batch_definition={ādatasource_nameā: āde-c2w3a1-db-datasourceā, ādata_connector_nameā: āfluentā, ādata_asset_nameā: āde-c2w3a1-tripsā, ābatch_identifiersā: {āvendor_idā: 4}})],
āexpectation_suite_nameā: āexpectation_suite_nameā},
{ābatch_requestā: [Batch(datasource=SQLDatasource(type=āsqlā, name=āde-c2w3a1-db-datasourceā, id=None, assets=[TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None)], connection_string=ConfigStr(ā{MYSQL_CONNECTION_STRING}'), create_temp_table=False, kwargs={}), data_asset=TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None), batch_request=BatchRequest(datasource_name='de-c2w3a1-db-datasource', data_asset_name='de-c2w3a1-trips', options={'vendor_id': 1}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861700>, id='de-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_1', metadata={'vendor_id': 1}, batch_markers={'ge_load_time': '20240930T204247.156885Z'}, batch_spec={'type': 'table', 'data_asset_name': 'de-c2w3a1-trips', 'table_name': 'trips', 'schema_name': None, 'batch_identifiers': {'vendor_id': 1}, 'splitter_method': 'split_on_column_value', 'splitter_kwargs': {'column_name': 'vendor_id'}}, batch_definition={'datasource_name': 'de-c2w3a1-db-datasource', 'data_connector_name': 'fluent', 'data_asset_name': 'de-c2w3a1-trips', 'batch_identifiers': {'vendor_id': 1}}),
Batch(datasource=SQLDatasource(type='sql', name='de-c2w3a1-db-datasource', id=None, assets=[TableAsset(name='de-c2w3a1-trips', type='table', id=None, order_by=[], batch_metadata={}, splitter=SplitterColumnValue(column_name='vendor_id', method_name='split_on_column_value'), table_name='trips', schema_name=None)], connection_string=ConfigStr('{MYSQL_CONNECTION_STRING}ā), create_temp_table=False, kwargs={}), data_asset=TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None), batch_request=BatchRequest(datasource_name=āde-c2w3a1-db-datasourceā, data_asset_name=āde-c2w3a1-tripsā, options={āvendor_idā: 2}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd0861f10>, id=āde-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_2ā, metadata={āvendor_idā: 2}, batch_markers={āge_load_timeā: ā20240930T204247.158778Zā}, batch_spec={ātypeā: ātableā, ādata_asset_nameā: āde-c2w3a1-tripsā, ātable_nameā: ātripsā, āschema_nameā: None, ābatch_identifiersā: {āvendor_idā: 2}, āsplitter_methodā: āsplit_on_column_valueā, āsplitter_kwargsā: {ācolumn_nameā: āvendor_idā}}, batch_definition={ādatasource_nameā: āde-c2w3a1-db-datasourceā, ādata_connector_nameā: āfluentā, ādata_asset_nameā: āde-c2w3a1-tripsā, ābatch_identifiersā: {āvendor_idā: 2}}),
Batch(datasource=SQLDatasource(type=āsqlā, name=āde-c2w3a1-db-datasourceā, id=None, assets=[TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None)], connection_string=ConfigStr(ā${MYSQL_CONNECTION_STRING}ā), create_temp_table=False, kwargs={}), data_asset=TableAsset(name=āde-c2w3a1-tripsā, type=ātableā, id=None, order_by=, batch_metadata={}, splitter=SplitterColumnValue(column_name=āvendor_idā, method_name=āsplit_on_column_valueā), table_name=ātripsā, schema_name=None), batch_request=BatchRequest(datasource_name=āde-c2w3a1-db-datasourceā, data_asset_name=āde-c2w3a1-tripsā, options={āvendor_idā: 4}), data=<great_expectations.execution_engine.sqlalchemy_batch_data.SqlAlchemyBatchData object at 0x7fadd08611f0>, id=āde-c2w3a1-db-datasource-de-c2w3a1-trips-vendor_id_4ā, metadata={āvendor_idā: 4}, batch_markers={āge_load_timeā: ā20240930T204247.161007Zā}, batch_spec={ātypeā: ātableā, ādata_asset_nameā: āde-c2w3a1-tripsā, ātable_nameā: ātripsā, āschema_nameā: None, ābatch_identifiersā: {āvendor_idā: 4}, āsplitter_methodā: āsplit_on_column_valueā, āsplitter_kwargsā: {ācolumn_nameā: āvendor_idā}}, batch_definition={ādatasource_nameā: āde-c2w3a1-db-datasourceā, ādata_connector_nameā: āfluentā, ādata_asset_nameā: āde-c2w3a1-tripsā, ābatch_identifiersā: {āvendor_idā: 4}})],
āexpectation_suite_nameā: āexpectation_suite_nameā}]