Migration from 0.18->1.2.4

Migrating GE 0.18->1.2.4, I am encountering warnings and errors:

  1. INFO:great_expectations.datasource.fluent.fluent_base_model:_PandasDataAsset.dict() - missing config_provider, skipping config substitution
  2. Using RuntimeBatchRequest
self.runtime_batch_request = RuntimeBatchRequest(
    datasource_name=self.datasource,
    data_connector_name=f"{self.datasource}_runtime_data_connector_name",
    data_asset_name=self.datasource,
    runtime_parameters={"batch_data": pandas_df},
    batch_identifiers={
        "default_identifier_name": f"{self.datasource}_{self.run_id}",
    },
)

Then:

self.batch = self.context.get_validator(
    batch_request=self.runtime_batch_request,
    expectation_suite_name=self.expectations_suite,
)

I get this error:

File ".venv/lib/python3.12/site-packages/great_expectations/data_context/data_context/abstract_data_context.py", line 1392, in get_last_batch
  return self._get_last_batch(
         ^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/great_expectations/data_context/data_context/abstract_data_context.py", line 1473, in _get_last_batch
  return datasource.get_batch(batch_request=result)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/great_expectations/datasource/fluent/interfaces.py", line 775, in get_batch
  return data_asset.get_batch(batch_request)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/great_expectations/datasource/fluent/pandas_datasource.py", line 453, in get_batch
  self._validate_batch_request(batch_request)
File ".venv/lib/python3.12/site-packages/great_expectations/datasource/fluent/pandas_datasource.py", line 430, in _validate_batch_request
  and batch_request.options
      ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'RuntimeBatchRequest' object has no attribute 'options'

Thx

Hi there, It looks like you need to update your implementation to align with the updated Fluent API for V1. There is no longer a batch request concept in V1. The Data Source and Data Asset are now found in the Validation Definition configuration data field. More information here.