Closed jeancochrane closed 2 months ago
The 14-digit PINs contained in the iasworld.pardat.tieback column should not contain any hyphens. Let's add a test to that column to make sure this is the case.
iasworld.pardat.tieback
There are two ways we could define this test:
tieback
column_length
expression_is_true
expression
"not like '%-%'"
I tested both options via quick and dirty queries in Athena and they return the same number of rows, so I think either approach is fine.
The 14-digit PINs contained in the
iasworld.pardat.tieback
column should not contain any hyphens. Let's add a test to that column to make sure this is the case.There are two ways we could define this test:
tieback
column is 14 digits long using thecolumn_length
generic testtieback
column does not contain any hyphens using theexpression_is_true
generic test with anexpression
of"not like '%-%'"
I tested both options via quick and dirty queries in Athena and they return the same number of rows, so I think either approach is fine.