Skip to content

Commit

Permalink
Dont cshow change icon if one side is not profiled
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <[email protected]>
  • Loading branch information
popcornylu committed Aug 14, 2023
1 parent 7ac474c commit 5c2f175
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions static_report/src/utils/dbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,18 @@ export function compareColumn(
}

// value change
if (base?.nulls !== target?.nulls) {
return 'col_changed';
}
if (base?.nulls !== undefined && target?.nulls !== undefined) {
if (base?.nulls !== target?.nulls) {
return 'col_changed';
}

if (base?.distinct !== target?.distinct) {
return 'col_changed';
}
if (base?.distinct !== target?.distinct) {
return 'col_changed';
}

if (base?.duplicates !== target?.duplicates) {
return 'col_changed';
if (base?.duplicates !== target?.duplicates) {
return 'col_changed';
}
}
}

Expand Down

0 comments on commit 5c2f175

Please sign in to comment.