Data Quality statement or SQL query for empty columns

0

Hello, Is there a DQ rule that can identify empty or null columns? Or is there an sql query that can identify empty columns?

thanks.

neal_li
質問済み 7ヶ月前279ビュー
1回答
0

Hello

According to the document below you could use ColumnLength to check if a column is not empty by checking if col length is greater than 0. Eg: ColumnLength "Postal_Code" > 0 https://docs.aws.amazon.com/glue/latest/dg/dqdl.html#dqdl-rule-types-ColumnLength

For not null you could use a custom sql as the example below: CustomSql "select Name from primary where Age IS NOT NULL" https://docs.aws.amazon.com/glue/latest/dg/dqdl.html#dqdl-rule-types-CustomSql

AWS
回答済み 7ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ