Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Failed Row Identification in Results for expect_column_values_to_be_type and expect_column_values_to_be_in_type_list Expectations #10711

Open
akmahi opened this issue Nov 27, 2024 · 1 comment

Comments

@akmahi
Copy link

akmahi commented Nov 27, 2024

Describe the bug
The expect_column_values_to_be_type and expect_column_values_to_be_in_type_list expectations do not provide failed row identification in their results.

Expected behavior
The documentation([https://greatexpectations.io/expectations/expect_column_values_to_be_of_type]) includes the result format as

{ "exception_info": { "raised_exception": false, "exception_traceback": null, "exception_message": null }, "result": { "element_count": 3, "unexpected_count": 3, "unexpected_percent": 100.0, "partial_unexpected_list": [ "12345", "abcde", "1b3d5" ], "missing_count": 0, "missing_percent": 0.0, "unexpected_percent_total": 100.0, "unexpected_percent_nonmissing": 100.0 }, "meta": {}, "success": false }

But , actual output is

{ "success": false, "expectation_config": { "type": "expect_column_values_to_be_of_type", "kwargs": { "batch_id": "spark_data_source-my_data_asset", "column": "Location", "type_": "IntegerType" }, "meta": {} }, "result": { "observed_value": "StringType" }, "meta": {}, "exception_info": { "raised_exception": false, "exception_traceback": null, "exception_message": null } }
Environment (please complete the following information):

  • Operating System: { Linux]
  • Great Expectations Version: [1.2.0]
  • Data Source: [spark]
@akmahi akmahi changed the title expect_column_values_to_be_type and expect_column_values_to_be_in_type_list both expectation result doesn't have the failed row identification in result. Missing Failed Row Identification in Results for expect_column_values_to_be_type and expect_column_values_to_be_in_type_list Expectations Nov 27, 2024
@adeola-ak adeola-ak moved this from To Do to In progress in GX Core Issues Board Dec 9, 2024
@adeola-ak
Copy link
Contributor

Hi there, thanks for reporting this. I can confirm that I’m also able to reproduce the issue and have reached out to the team to clarify the expected behavior for these expectations. Please stay tuned for updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

2 participants