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
[ENHANCEMENT] Restore cli functionality for legacy checkpoints #2511
Conversation
We had originally removed support for However, after conversations with @spbail, we determined it makes sense to restore the above commands since validation operators and legacy checkpoints are still supported with ge config versions >= 3.0. In addition, the CLI now has I confirmed that the commands still work with ge config v3.0, but some adjustments need to be made. Some notes from manual testing - assume the default
|
Replies inline:
Tbh I'm actually ok with this leading to an error, since it's unlikely/not necessarily intended to have old- and new-style datasources in the same config.
Tested and confirmed.
I think fallback logic makes the most sense to me. I see that
I wouldn't necessarily go that far, I think it's fine to just fall back onto a default validation_operator when a LegacyCheckpoint is run and no configured validation_operator is found in the config. Maybe output a warning/info that it's using a default.
We did retire validation operators with the v3 data context config version, so I would prefer to not revert that. |
Per conversation with @spbail, will implement fallback logic for LegacyCheckpoint to use above default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, tested out the following configs for checkpoint new - run- script:
- v3 config and v2 datasource
- v2 config (with validation operators) and v2 datasource
- v3 config and v3 datasource - correct error (need to use --v3-api flag for a v3 datasource)
- v2 config (with validation operators) and v3 datasource - correct error (need to use --v3-api flag for a v3 datasource)
Co-authored-by: Sam Bail <sam@superconductive.com>
Co-authored-by: Sam Bail <sam@superconductive.com>
Co-authored-by: Sam Bail <sam@superconductive.com>
…-expectations#2511) * Restore cli functionality for legacy checkpoints * Nix legacy arg * Update checkpoint script template * Also use fallback validation operator if given name not found in context * Nix validation_operator_name * Update test * Nix no-longer relevant tests * Linting * Update great_expectations/cli/v012/checkpoint.py Co-authored-by: Sam Bail <sam@superconductive.com> * Update great_expectations/cli/v012/checkpoint.py Co-authored-by: Sam Bail <sam@superconductive.com> * Update great_expectations/cli/v012/checkpoint_script_template.py Co-authored-by: Sam Bail <sam@superconductive.com> Co-authored-by: Sam Bail <sam@superconductive.com>
Changes proposed in this pull request:
checkpoint new
,checkpoint run
,checkpoint script
) when using a GE config >= 3.0