Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-ge] Drop support for old APIs (#25540)
## Summary & Motivation Update `dagster-ge` to support newer versions and drop support for older versions. Why? - Prior to this PR, the most recent version of `great_expectations` supported by `dagster_ge` is `0.17.11`, released 2023-08-17 (so over a year old). There have been many releases (including 1.x series) since then. - Pydantic 2 is only supported in 0.17.15+, so we can't update `dagster` to Pydantic 2-only until `dagster-ge` supports it. - The later versions of `great_expectations` we want to support drop some of the old APIs this integration was still supporting. - Due to `dagster-ge` supporting only old `great_expectations`, `dagster-ge` was a PITA for environment management, with nth-order dependencies capped at old versions conflicting with the newer versions we'd like to use elsewhere. What was done here: - Prior to this PR, `dagster-ge` exposed two versions of its sole public API: `ge_validation_op_factory` and `ge_validation_op_factory_v3`. `ge_validation_op_factory_v3` uses APIs that are supported in more recent GE versions. `ge_validation_op_factory` used ancient APIs. Also `ge_validation_op_factory_v3` wasn't even exported from the top-level. I simply renamed `ge_validation_op_factory_v3` to `ge_validation_op_factory` and deleted the old `ge_validation_op_factory`. - General consolidation refactor of tests for clarity and concision. - Adapt `examples/with_great_expectations` to use the new version. - Update dev install script to install `dagster-ge` again. It was skipping it due to the aforementioned nth-order dependency conflicts. ## How I Tested These Changes Revamped tests. ## Changelog [dagster-ge] `dagster-ge` now only supports `great_expectations>=0.17.15`. The `ge_validation_op_factory` API has been replaced with the API previously called `ge_validation_op_factory_v3`. Now there is only one API, `ge_validation_op_factory`.
- Loading branch information