【发布时间】:2014-06-16 10:18:14
【问题描述】:
我正在尝试在时间戳字段上查询表,但我得到了一些奇怪的结果。
例如,查询时间戳为> 1402913235(根据http://www.epochconverter.com 为6 Jun 2014 10:07:15 GMT)的行返回ff:
SELECT timestamp FROM [MyTable]
where timestamp > 1402913235
order by timestamp LIMIT 20;
Results:
--------
Row timestamp
1 2009-02-13 23:31:30 UTC
2 2009-02-13 23:31:30 UTC
3 2009-02-13 23:31:30 UTC
4 2009-02-13 23:31:30 UTC
5 2009-02-13 23:31:35 UTC
Downloaded Raw CSV:
-------------------
timestamp
1.23456789E9
1.23456789E9
1.23456789E9
1.23456789E9
1.234567895E9
很明显,前5个结果不大于1402913235。
同一张表的另一个例子:
SELECT timestamp FROM [MyTable]
order by timestamp desc LIMIT 20;
Results:
--------
Row timestamp
1 46426-07-19 16:15:18 UTC
2 46426-07-19 14:45:44 UTC
3 46426-07-19 14:44:40 UTC
4 46426-07-19 14:34:12 UTC
5 46426-07-19 09:17:21 UTC
Downloaded Raw CSV:
-------------------
timestamp
1.4029131465180002E12
1.402913141144E12
1.40291314108E12
1.402913140452E12
1.402913121441E12
同样,根据epochconverter.com,第一个结果应该是1.4029131465180002E12 == 1402913146518.0002 == 16 Jun 2014 10:05:46 GMT而不是46426-07-19 16:15:18
发生了什么事?
【问题讨论】:
-
你在使用 Streak 插件吗?
-
有时可以,但已禁用。
标签: google-bigquery