【发布时间】:2015-03-12 01:00:50
【问题描述】:
使用 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"}
]}
]
这里是一个 JSON 行,正在为这个架构发送到 BQ:
{
"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),如下所示:
我也尝试通过 UNIX 时间戳发送,但无济于事。您能看到我的架构或输入数据有什么错误会导致时间戳无法解析吗?
【问题讨论】:
-
时间戳解析似乎刚刚更新(一个多小时后)。时间戳现在显示正确的值。任何关于为什么解析需要这么长时间的见解??
标签: json google-app-engine google-bigquery