Slide 29
Slide 29 text
目的: 主キーだがNULL/重複があるなどの異常をチェック
DO: 可視化(1/4) NULL/重複チェック
DashBoard の例
select
countif(safe_cast(date as string) ||
safe_cast(user_id as string) is null ) as cnt_pk_null,
[ struct(col1 as column_name,
countif( col1 is null ) as cnt_null, ...
入力
table_name partition_key check_col
tableA date, user_id col1, col2,...
生成されるクエリの例
tableA
tableA
tableA
col1
col2
col3
%
CHECK
データのプロファイルを
数値で確認
BQには主キーがない