What would be equivalent flux query for SELECT address, name FROM addresses ? (I am referring to FluxQL, the new query language developed by InfluxData)

I didn't find a clear answer to this in the limited Flux Documentation present. Flux documentation says that filter() function is the equivalent of both SELECT and WHERE clauses, but all examples given are equivalent of WHERE clauses, nothing on SELECT.

Edit: An answer posted below gives the equivalent query in InfluxQL, which is not what I am asking for. Yeah I know, FluxQL, InfluxQL, it can get confusing.

These are the documentation for FluxQL for better reference:

https://docs.influxdata.com/flux/v0.50/introduction/getting-started

https://v2.docs.influxdata.com/v2.0/query-data/get-started/

有帮助吗?

解决方案 2

Abel Nightroad has posted a great answer to this, which you can find here: https://stackoverflow.com/a/60614957/4661264

其他提示

See Writing and Exploring Data as part of the Getting Started documentation.

> SELECT "address", "name" FROM "addresses"
name: addresses
---------
time                              address            name
2020-03-09T07:51:07.580664347Z    123 fake street    Billy Bob

>
许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top