【问题标题】:Specifying evaluation parameters for ExpectationConfiguration object in Great Expectations为 Great Expectations 中的 ExpectationConfiguration 对象指定评估参数
【发布时间】:2022-07-17 02:54:48
【问题描述】:

我正在尝试了解如何在创建 ExpectationConfiguration 对象时指定评估参数。

复制 重现行为的步骤:

我已按照说明使用 ExpectationConfiguration 创建期望:

https://great-expectations.readthedocs.io/en/latest/guides/how_to_guides/creating_and_editing_expectations/how_to_create_a_new_expectation_suite_without_a_sample_batch.html

我将 ExpectationConfiguration 定义如下:

 expectation_configuration_2 = ExpectationConfiguration(
       expectation_type="expect_column_distinct_values_to_be_in_set",
   kwargs = {
      "column" : "gameid",
      "value_set" : {"$PARAMETER" : "runtime_values"}
      },
   meta={
    "notes": {
    "format": "markdown",
    "content": "Ensures that certain values of gameid are included. **Markdown** `Supported`"
     }
 }
)
suite.add_expectation(expectation_configuration=expectation_configuration_2)

但我收到此错误:

great_expectations.exceptions.exceptions.EvaluationParameterError: No value found for $PARAMETER runtime_values

【问题讨论】:

    标签: python great-expectations


    【解决方案1】:

    在最新版本中,您无法在没有检查点的情况下运行期望套件。您可以从检查点传递评估参数。您还可以在套件本身中为评估参数提供默认值。

    【讨论】:

      猜你喜欢
      • 2021-10-20
      • 2021-10-18
      • 2021-11-14
      • 2021-12-23
      • 2020-04-05
      • 2011-06-11
      • 2021-02-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多