0
我正在清理我的生产数据集,我正在寻找一些无用的条目。Bigquery查找条目所属的表
SELECT count(pid_like) FROM TABLE_DATE_RANGE(DATASET.TABLE_PRODUCTION_, DATE_ADD(CURRENT_TIMESTAMP(), -30, 'DAY'),CURRENT_TIMESTAMP()) where c1 is null and c2 is null and c3 is null and c4 is null
所以我想删除其中C1,C2,C3和C4空条目。
之前,我在最后30桌清洁为由:
# done for each last 30 tables
DELETE FROM DATASET.TABLE_PRODUCTION_YYYYMMDD where c1 is null and c2 is null and c2 is null and c4 is null.
但清洗后,一些无用的条目将会保留,但我不能对他们是什么台找到。
不错!你能指点我的相关文件吗? –
也许这个? https://cloud.google.com/bigquery/docs/querying-wildcard-tables#filtering_selected_tables_using_table_suffix。这里是FORMAT_DATE,但您也可以在这里找到其他功能:https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#format_date –
非常感谢:) –