Please instruct, what is a proper options to get distinct values of tag (to use as a Grafana dashboard variable).
I am interested in working flightSQL analog of
v1.measurementTagValues(bucket: v.Environment, measurement: “log”, tag: “type”)
try to use
SELECT DISTINCT "type" FROM "log" WHERE $__timeFilter(time);
SELECT "type" FROM "log" WHERE $__timeFilter(time) GROUP BY "type" ORDER BY "type";
(ORDER BY not provide order with it (( )
but with interval more than 7 days ($__timeFilter = time > now() - interval ‘7 days’)
i obtain this error
flightsql: rpc error: code = Internal desc = Error while planning query: External error: Query would exceed file limit of 432 parquet files. Please specify a smaller time range for your query. You can increase the file limit with the `--query-file-limit` option in the serve command, however, query performance will be slower and the server may get OOM killed or become unstable as a result
(and this on very small DB, with 2-3 weeks of data. )
432 - default setting for --query-file-limit, but this like 3 days interval max?
I am interested in filtering data (using dashboard variables) up to 1month interval.