We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 553e644 + 6a97f03 commit b6b571bCopy full SHA for b6b571b
1 file changed
src/cli/commands/lineage.rs
@@ -228,10 +228,18 @@ pub async fn exec(
228
}
229
230
if *fail_on_impact {
231
- let has_consumers = report["summary"]["cross_project_consumers"]
232
- .as_array()
233
- .map_or(false, |a| !a.is_empty());
234
- if has_consumers {
+ let should_fail = if effective_cross_project {
+ // Cross-project mode: only fail when confirmed consumers are found.
+ report["summary"]["cross_project_consumers"]
+ .as_array()
235
+ .map_or(false, |a| !a.is_empty())
236
+ } else {
237
+ // No cross-project lookup: fail if any columns land in a public model.
238
+ report["summary"]["total_impacts"]
239
+ .as_u64()
240
+ .map_or(false, |n| n > 0)
241
+ };
242
+ if should_fail {
243
return Err(DbtpError::ImpactFound(report));
244
245
0 commit comments