未解析 BigQuery 时间戳
BigQuery Timestamp Not Getting Parsed
使用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 时间戳发送,但无济于事。你能看到我的模式或输入数据有任何错误会导致时间戳无法解析吗?
我遇到了类似的问题,但我只是在查看预览中的详细信息 window。当我实际上 运行 任何查询时,时间戳都正常工作。详情通常需要 24 小时才能将时间戳更新为实际值。
使用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 时间戳发送,但无济于事。你能看到我的模式或输入数据有任何错误会导致时间戳无法解析吗?
我遇到了类似的问题,但我只是在查看预览中的详细信息 window。当我实际上 运行 任何查询时,时间戳都正常工作。详情通常需要 24 小时才能将时间戳更新为实际值。