Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 使用--time\u partitioning\u字段查询流数据_Google Cloud Platform_Google Bigquery - Fatal编程技术网

Google cloud platform 使用--time\u partitioning\u字段查询流数据

Google cloud platform 使用--time\u partitioning\u字段查询流数据,google-cloud-platform,google-bigquery,Google Cloud Platform,Google Bigquery,我目前正在探索如何定期查询表中的流式缓冲区数据,以便近实时地生成性能报告,并发现以下StackOverflow链接: 但是,当前类型的分区是使用--time\u partitioning\u field 使用以下查询强制查询表中的所有数据: SELECT * FROM `<project>.<data-set>.<time-partitioned-streaming-table>` where <time-partitioning-field>

我目前正在探索如何定期查询表中的流式缓冲区数据,以便近实时地生成性能报告,并发现以下StackOverflow链接:

但是,当前类型的分区是使用
--time\u partitioning\u field

使用以下查询强制查询表中的所有数据:

SELECT * FROM `<project>.<data-set>.<time-partitioned-streaming-table>`
where <time-partitioning-field> is null
从“…”中选择*`
哪里是空的

查询没有显示任何差异,因为理想情况下,峰值流缓冲区为@~60MB/小时


有没有办法只查询具有这种分区类型的流数据

我认为这应该是可行的(但这是遗留的SQL)


无法查询流式缓冲区数据,因为一旦定义了特定的
时间戳
日期
,数据就会丢失


检查还可以找到您发布的链接中提到的摄取时间分区表的解决方案

按时间分区仅支持分区字段#standardSQL<代码>错误:在旧版SQL中不支持查询在字段上分区的表Logan:您运行的查询是什么-当您遇到此错误时?我在回答中添加了针对带有时间分区字段的表的创建语句。此查询未产生任何错误。它可以正常工作。。我在常规的select from表查询中遇到了该错误。。认为它不再支持遗留sql了。。谢谢:-)有没有一种方法也可以使用标准sql获取流缓冲区数据?
#standardSQL
 CREATE TABLE test.newtable (transaction_id INT64, transaction_date DATE)
 PARTITION BY transaction_date
 OPTIONS(
   partition_expiration_days=3,
   description="a table partitioned by transaction_date"
 )

#legacySQL
select * from [test.newtable$__UNPARTITIONED__]