You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When following the documentation to know more about the Validation definition & running validations, I'm encountering the following issue
BuildBatchRequestError: Bad input to build_batch_request: options must contain exactly 1 key, 'dataframe'.
Even though answer to this issue is provided at #10270 , it's not updated in the documentation
Describe the bug
When following the documentation to know more about the Validation definition & running validations, I'm encountering the following issue
BuildBatchRequestError: Bad input to build_batch_request: options must contain exactly 1 key, 'dataframe'.
Even though answer to this issue is provided at #10270 , it's not updated in the documentation
To Reproduce
import great_expectations as gx
context = gx.get_context()
set_up_context_for_example(context)
Retrieve an Expectation Suite
expectation_suite_name = "my_expectation_suite"
expectation_suite = context.suites.get(name=expectation_suite_name)
Retrieve a Batch Definition
data_source_name = "my_data_source"
data_asset_name = "my_data_asset"
batch_definition_name = "my_batch_definition"
batch_definition = (
context.data_sources.get(data_source_name)
.get_asset(data_asset_name)
.get_batch_definition(batch_definition_name)
)
Create a Validation Definition
definition_name = "my_validation_definition"
validation_definition = gx.ValidationDefinition(
data=batch_definition, suite=expectation_suite, name=definition_name
)
Add the Validation Definition to the Data Context
validation_definition = context.validation_definitions.add(validation_definition)
validation_results = validation_definition.run()
Expected behavior
The batch data should be validated with the provided expectation suite, but it's throwing an BuildBatchRequestError.
Environment (please complete the following information):
Additional context
The issue can be mitigated or fixed by passing batch_parameters. Update the documentation for the same.
The text was updated successfully, but these errors were encountered: