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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则