BigQuery时间戳没有得到解析

时间:2015-01-13 22:44:44

标签: json google-app-engine google-bigquery

使用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接受此数据,但时间戳为nil(1970-01-01 00:00:00 UTC),如下所示: enter image description here

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

1 个答案:

答案 0 :(得分:2)

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