OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Missing result for "expect_column_values_to_be_of_type" in Great expectations

  • Thread starter Thread starter aca1803
  • Start date Start date
A

aca1803

Guest
This is my rule:

Code:
rule = {
                        "rule_name": "expect_column_values_to_be_of_type",
                        "parameters": [
                            {
                                "column": column,
                                "type_": column_type.capitalize() + "Type",
                                "result_format" : {"result_format": "COMPLETE"}
                            }
                        ]
                    }

but I am getting just this result:

Code:
{
      "success": true,
      "expectation_config": {
        "expectation_type": "expect_column_values_to_be_of_type",
        "kwargs": {
          "column": "id",
          "type_": "IntegerType",
          "batch_id": "my_spark_in_memory_datasource_poc-poc"
        },
        "meta": {}
      },
      "result": {
        "observed_value": "IntegerType"
      },
      "meta": {},
      "exception_info": {
        "raised_exception": false,
        "exception_traceback": null,
        "exception_message": null
      }
    }

I could not get the element_count,partial_unexpected_list, partial_unexpected_counts. In this part:

Code:
 "result": {
        "observed_value": "IntegerType"
      }

First I did not use "result_format" : {"result_format": "COMPLETE"}, I am using now but still, I could not get proper result just for "expect_column_values_to_be_of_type" rule. other rules are OK either with result_format or without it.

what can be missing in my configuration?
<p>This is my rule:</p>
<pre><code>rule = {
"rule_name": "expect_column_values_to_be_of_type",
"parameters": [
{
"column": column,
"type_": column_type.capitalize() + "Type",
"result_format" : {"result_format": "COMPLETE"}
}
]
}
</code></pre>
<p>but I am getting just this result:</p>
<pre><code>{
"success": true,
"expectation_config": {
"expectation_type": "expect_column_values_to_be_of_type",
"kwargs": {
"column": "id",
"type_": "IntegerType",
"batch_id": "my_spark_in_memory_datasource_poc-poc"
},
"meta": {}
},
"result": {
"observed_value": "IntegerType"
},
"meta": {},
"exception_info": {
"raised_exception": false,
"exception_traceback": null,
"exception_message": null
}
}
</code></pre>
<p>I could not get the element_count,partial_unexpected_list, partial_unexpected_counts. In this part:</p>
<pre><code> "result": {
"observed_value": "IntegerType"
}
</code></pre>
<p>First I did not use "result_format" : {"result_format": "COMPLETE"}, I am using now but still, I could not get proper result just for "expect_column_values_to_be_of_type" rule. other rules are OK either with result_format or without it.</p>
<p>what can be missing in my configuration?</p>
 

Latest posts

J
Replies
0
Views
1
Jeff P Chacko
J
Top