Validator.expect_*(row_condition=...) 会拒绝包含单引号的行条件 (例如 status == 'active')
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/great_expectations/validator/validator.py:484, in Validator.validate_expectation..inst_expectation(*args, **kwargs) 478 def inst_expectation(*args: dict, **kwargs): # noqa: PLR0912 479 # this is used so that exceptions are caught appropriately when they occur in expectation config 480 481 # TODO: JPC - THIS LOGIC DOES NOT RESPECT DEFAULTS SET BY USERS IN THE VALIDATOR VS IN THE EXPECTATION 482 # DEVREL has action to develop a new plan in coordination with MarioPod --> 484 expectation_kwargs = recursively_convert_to_json_serializable(kwargs) 486 meta: Optional[dict] = expectation_kwargs.pop("meta", None) 488 basic_default_expectation_args: dict = { 489 k: v 490 for k, v in self.default_expectation_args.items() 491 if k in Validator.RUNTIME_KEYS 492 }
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/great_expectations/data_asset/util.py:100, in recursively_convert_to_json_serializable(test_obj) 84 def recursively_convert_to_json_serializable( 85 test_obj: dict, 86 ) -> dict: 87 """ 88 Helper function to convert an object to one that is serializable 89 (...)
内容来源: fivetran/great_expectations