找不到时区
Unable to find time zone
当我尝试在我的 influx-db 查询中使用 tz()
时,我总是遇到错误
简单的工作查询示例:
> use _internal
> precision rfc3339
> select * from cq limit 2
name: cq
time hostname queryFail queryOk
---- -------- --------- -------
2018-08-28T13:46:20Z DESKTOP-M60GAEJ 0 0
2018-08-28T13:46:30Z DESKTOP-M60GAEJ 0 0
但是当我按照 docs 中的说明尝试使用 tz()
时,我得到一个错误:
> select * from cq tz('America/Chicago') limit 2
ERR: error parsing query: unable to find time zone America/Chicago
我也试过不同的顺序(最后是tz()
):
> select * from cq limit tz('America/Chicago')
ERR: error parsing query: unable to find time zone America/Chicago
其他一些时区(如指定 in the tz database)也会导致同样的错误。
我在 64 位上使用 influx 版本 1.6.2
Windows 10
我在版本 1.7.0~n201808280800
中看到同样的问题
我错过了什么?
这是一个已知错误,请参阅:https://github.com/influxdata/influxdb/issues/10196
干杯。
当我尝试在我的 influx-db 查询中使用 tz()
时,我总是遇到错误
简单的工作查询示例:
> use _internal
> precision rfc3339
> select * from cq limit 2
name: cq
time hostname queryFail queryOk
---- -------- --------- -------
2018-08-28T13:46:20Z DESKTOP-M60GAEJ 0 0
2018-08-28T13:46:30Z DESKTOP-M60GAEJ 0 0
但是当我按照 docs 中的说明尝试使用 tz()
时,我得到一个错误:
> select * from cq tz('America/Chicago') limit 2
ERR: error parsing query: unable to find time zone America/Chicago
我也试过不同的顺序(最后是tz()
):
> select * from cq limit tz('America/Chicago')
ERR: error parsing query: unable to find time zone America/Chicago
其他一些时区(如指定 in the tz database)也会导致同样的错误。
我在 64 位上使用 influx 版本 1.6.2
Windows 10
我在版本 1.7.0~n201808280800
我错过了什么?
这是一个已知错误,请参阅:https://github.com/influxdata/influxdb/issues/10196
干杯。