查询 - 从Mydataset.Table$__PARTITIONS_SUMMARY__
中选择partition_id;
给出以下错误 - 表“Mydataset.Table $ PARTITIONS_SUMMARY ”不能包含装饰者`
答案 0 :(得分:7)
在传统SQL中尝试以下
SELECT project_id,
dataset_id,
table_id,
partition_id,
TIMESTAMP(creation_time/1000) AS creation_time
FROM [Mydataset.Table$__PARTITIONS_SUMMARY__]
标准SQL的及以下
SELECT _PARTITIONTIME as pt
FROM `Mydataset.Table`
GROUP BY 1
也适用于旧版SQL
SELECT _PARTITIONTIME as pt
FROM [Mydataset.Table]
GROUP BY 1