You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation outlines a way to dynamically generate a data context. I'm planning on running this from the script created from the checkpoint script cli call.
However there's a few issues:
DataContextConfig can only be used to instantiate BaseDataContext and not DataContext. The DataContextConfig is passed in via the project_config arg.
BaseDataContext doesnt have a get_checkpoint() method. So I can't use it in place of DataContext.
If I'm understanding correctly, this means that I'm unable to create a DataContextConfig dynamically and use it in a Checkpoint. This is because DataContext seems to only accept a yaml file as a config and not a DataContextConfig.
Describe the solution you'd like
DataContext should be able to be instantiated with a DataContextConfig, either through a project_config arg like BaseDataContext or through some other method.
The text was updated successfully, but these errors were encountered:
The documentation outlines a way to dynamically generate a data context. I'm planning on running this from the script created from the
checkpoint script
cli call.However there's a few issues:
DataContextConfig
can only be used to instantiateBaseDataContext
and notDataContext
. TheDataContextConfig
is passed in via theproject_config
arg.BaseDataContext
doesnt have aget_checkpoint()
method. So I can't use it in place ofDataContext
.__init__
of BaseDataContext: https://github.com/great-expectations/great_expectations/blob/develop/great_expectations/data_context/data_context.py#L224__init__
of DataContext: https://github.com/great-expectations/great_expectations/blob/develop/great_expectations/data_context/data_context.py#L2245If I'm understanding correctly, this means that I'm unable to create a
DataContextConfig
dynamically and use it in a Checkpoint. This is becauseDataContext
seems to only accept a yaml file as a config and not aDataContextConfig
.Describe the solution you'd like
DataContext
should be able to be instantiated with aDataContextConfig
, either through aproject_config
arg likeBaseDataContext
or through some other method.The text was updated successfully, but these errors were encountered: