Skip to content
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

Lifecycle adapter for automatic schema evolution #827

Open
zilto opened this issue Apr 16, 2024 · 0 comments
Open

Lifecycle adapter for automatic schema evolution #827

zilto opened this issue Apr 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zilto
Copy link
Collaborator

zilto commented Apr 16, 2024

Inspired by dlt schema features (auto schema, schema evolution, data contracts), we could create lifecycle adapter to capture the schema of dataframe objects and store them to a file (pandas, polars, pyarrow, and Ibis to get started?).

Then, the same adapter could do subsequent runs:

  • strict check: fail if schema doesn't match
  • warning: try to execute, but log schema mismatch
  • evolution: update the stored schemas

We could possibly convert these schemas to dlt schemas for full visibility over ETL. Similarly, Ibis expression allows for granular lineage (e.g., "new_users" from HamiltonNode 1 was renamed to "users" in HamiltonNode 3)

Describe the solution you'd like
Use lifecycle adapters, in particular run_after_node_execution and run_after_graph_execution. The challenge is to find the right format to store this information and integrate nicely with other tools

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant