Closed pmuntyanu closed 2 years ago
I believe we just omit the dataset name at line 111: https://github.com/great-expectations/great_expectations/blame/develop/great_expectations/datasource/data_connector/inferred_asset_file_path_data_connector.py#L111
When I compose the batch request in the way shown below, all works.
batch_request = BatchRequest(
datasource_name="my_s3_datasource",
data_connector_name="inferred_connector",
data_asset_name='DEFAULT_ASSET_NAME'
)
Thanks for the follow-up, @pmuntyanu! I believe this is likely to be an issue with configuration, but I'm trying to understand where the configuration issue is happening.
I am also surprised that this works with a data_asset_name
set to DEFAULT_ASSET_NAME
, especially for an InferredAssetDataConnector. Could you please share the BatchRequest that didn't work? What is the name of your asset in this case?
Also, we are unable to download the s3_test.py file above - would you please paste the contents into a gist
and link that here? Thank you!
Hi @talagluck , I found out that I misconfigured it because I did not understand the data_asset_name
purpose. Now all is configured and works well(used this documentation). We can close the issue. Thanks a lot for looking into
Great! Thanks so much for the follow-up.
Describe the bug Hello GE. I am trying to execute test against data in s3 and I am getting this error:
ValueError: RuntimeBatchRequests must specify exactly one corresponding BatchDefinition
. The reason for that is that in thegreat_expectations/datasource/data_connector/util.py
thebatch_request.data_asset_name != batch_definition.data_asset_name
returns true on the line 69.To Reproduce Steps to reproduce the behavior:
pm/ge/
so that you have 2 s3 files:s3://bucket/pm/ge/some_file.csv
ands3://bucket/pm/ge/other_file.csv
.Expected behavior the code runs without exception
Environment (please complete the following information):
Additional context @talagluck has a video with reproduce, but there I executed the code using yaml config and cli
s3_test.py.txt requirements.frozen.txt
TraceBack