Location parameter is of record type, with zone and offset fields, not just zone name string. Please have a look at timezone package. This should work:
I extended my example to the below one, and it still gives an error. Can you please suggest a solution?
Query: I want to aggregate my data which represented in utc time for days in America/Los_Angeles timezone. aggregateWindow 's location parameter is throwing an error when added to the query.
Likely the issue is that you’ve set the environment variable incorrectly. If you downloaded zoneinfo.zip , make sure you provide the path to where the file actually is, with set ZONEINFO=C:\your\file\path\zoneinfo.zip - just copying the command as alespour provided wouldn’t work unless you moved the file into that specific directory.
Ah, yeah, that’ll do it. In case anyone else comes across this thread, use set if you’re setting the environment variable via a terminal/command line interface. If you use a UI or are editing a file that stores environment variables, you can just specify the variable directly.