AI Code Reviews are an optional add-on to Datafold’s CI integration. If you prefer to use only Data Diffs, no changes are needed — your existing CI setup continues to work as before.
How It Works
1
The first CI run finishes
The review runs once per pull request, after the first Datafold CI run for that PR finishes. Later commits to the same PR are not re-reviewed.
2
Changed code is checked against your rules
Datafold analyzes the changed code against your organization’s rule set and removes duplicate findings.
3
Feedback is posted to the PR
Findings are posted as inline review comments, with suggested changes, on the changed lines (up to 20 per pull request).
What AI Code Reviews Check
AI Code Reviews check each pull request against SQL style and best-practice rules that Datafold configures for your organization. For example, a rule set can prefer CTEs over subqueries, or explicitINNER JOIN over comma joins. Contact Datafold support to define your rule set.
AI Code Reviews are supported for GitHub and GitLab repositories.
AI Code Reviews + Data Diffs
AI Code Reviews and Data Diffs complement each other:
Used together, they provide code-level and data-level validation for each pull request.
Enabling AI Code Reviews
AI Code Reviews require Datafold’s CI integration to be set up with your Git provider and data warehouse. To enable the feature:- Ensure your Git provider and data warehouse are connected in Datafold.
- Verify your CI configuration is set up under Settings > Integrations > CI.
- Contact Datafold support to enable AI Code Reviews and define your rule set.
