gpt4 book ai didi

json - 未解析 BigQuery 时间戳

转载 作者:太空宇宙 更新时间:2023-11-03 15:35:13 26 4
gpt4 key购买 nike

使用 AppEngine/BigQuery。时间戳已停止解析。

这是我的架构:

[
{"name":"RowID","type":"string"},
{"name":"Timestamp","type":"timestamp"},
{"name":"Keyword","type":"string"},
{"name":"Engine","type":"string"},
{"name":"Locale","type":"string"},
{"name":"Geo","type":"string"},
{"name":"Device","type":"string"},
{"name":"Metrics","type":"record", "fields":[
{"name":"GlobalSearchVolume","type":"integer"},
{"name":"CPC","type":"float"},
{"name":"Competition","type":"float"}
]}
]

这里是为该模式发送到 BQ 的 JSON 行:

{
"RowID":"6263121748743343555",
"Timestamp":"2015-01-13T07:04:05.999999999Z",
"Keyword":"buy laptop",
"Engine":"google",
"Locale":"en_us",
"Geo":"",
"Device":"d",
"Metrics":{
"GlobalSearchVolume":3600,
"CPC":7.079999923706055,
"Competition":1
}
}

此数据被 BigQuery 接受,但时间戳为零(1970-01-01 00:00:00 UTC),如下所示: enter image description here

我也试过通过 UNIX 时间戳发送,但无济于事。您能看到我的架构或输入数据有任何错误会导致时间戳无法解析吗?

最佳答案

我有一个类似的问题,但我只是在预览窗口中查看详细信息。当我实际运行任何查询时,时间戳工作正常。详细信息通常需要 24 小时才能将时间戳更新为实际值。

关于json - 未解析 BigQuery 时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27932871/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com