influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.

Home Page:https://influxdata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nullable types but missing null value

FStefanni opened this issue · comments

Hi,

I am missing a simple point: how to return null from a custom function?
I am missing a null value/constant.
In the documentation I see "Null types" (https://docs.influxdata.com/flux/v0.x/spec/types/), "Nullable constraint" (same page), but if in the flux code I try to write null, I get an error ("undefined identifier null").

So how can I return/generate a null value?

I need this since in my case, not having a value at specific time (i.e. "null") is different from having a value (0 is a valid value)

Thank you,
regards

Hi,

thank you, I missed it.

Regards