Add data contract system and validation node for catalog tables#402
Open
Edwardvaneechoud wants to merge 2 commits intomainfrom
Open
Add data contract system and validation node for catalog tables#402Edwardvaneechoud wants to merge 2 commits intomainfrom
Edwardvaneechoud wants to merge 2 commits intomainfrom
Conversation
Introduces a typed data contract model (1:1 per catalog table) with column-level rules (not_null, unique, dtype, value_range, allowed_values, regex, custom_expression) and general rules (Flowfile expressions). Each rule provides a to_expression() method returning a Flowfile expression string, keeping the validation engine thin and rule logic self-contained. Includes: - DataContract DB model, repository, service CRUD, and API endpoints - Validation engine shared between catalog contracts and the new data_validation flow node (pass-through with _is_valid/_violations columns) - Auto-generate contract from table profile - mark-validated endpoint for tier-2 validation flows - ContractSummary on CatalogTableOut for catalog UI status badges https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho
✅ Deploy Preview for flowfile-wasm canceled.
|
Validation now auto-marks the contract at the current table version and fires downstream table_trigger schedules on success. Overwrite no longer triggers downstream flows — the contract must pass first. Also fixes self._repo → self.repo bug in service contract methods and improves storage format detection in the validate endpoint. https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a typed data contract model (1:1 per catalog table) with
column-level rules (not_null, unique, dtype, value_range, allowed_values,
regex, custom_expression) and general rules (Flowfile expressions).
Each rule provides a to_expression() method returning a Flowfile expression
string, keeping the validation engine thin and rule logic self-contained.
Includes:
data_validation flow node (pass-through with _is_valid/_violations columns)
https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho