Skip to content

Commit 09ee773

Browse files
committed
Add duped cell ids check
1 parent 66dfa39 commit 09ee773

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT COALESCE(sum(n_dupes), 0) FROM
2+
(SELECT count(*) - 1 as n_dupes
3+
FROM {{ staging_table }}
4+
GROUP BY
5+
cell_id
6+
HAVING count(*) - 1 > 1) tableWithCount

0 commit comments

Comments
 (0)