influxdata / influxdata/influxdb

"location" option not work in v2 flux query

Open
#20,804 6 comments 1 reaction 0 assignees View on GitHub
area/2.x area/flux
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. In any flux query (Data Explorer or Task), add code ["option location = fixedZone(offset:-5h)"](https://docs.influxdata.com/influxdb/v2.0/reference/flux/language/options/#location)
2. Submit the query
3. Got error : "undefined identifier fixedZone"

__Expected behavior:__
Change the defalut timezone in the query

__Actual behavior:__
Got error : "undefined identifier fixedZone"

__Environment info:__

* System info:
* InfluxDB version: v2.04
* Docker Image: quay.io/influxdb/influxdb:v2.0.4

__Config:__

__Logs:__

__Performance:__

Contributor guide

Open the contributing guide

Research direction

Reproduce the Flux query in Data Explorer or a Task using the v2.0.4 Docker image, starting with the documented `option location = fixedZone(offset:-5h)` syntax. Trace why `fixedZone` is reported as undefined; done when the query accepts the option and changes its default timezone without that error.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.