questdb / grafana-questdb-datasource

Questdb datasource plugin for Grafana.
Apache License 2.0
9 stars 0 forks source link

[Suggestion] Disable SAMPLE and LATEST options if not designated timestamp #105

Closed javier closed 5 months ago

javier commented 5 months ago

To reproduce

On the Query Builder, when no designated timestamp is available in the table, it would be a good idea to disable (or not showing) the SAMPLE BY and LATEST options, to avoid any queries that will produce errors. The plugin is already inferring the designated timestamp to get the timestamp column, so it seems the logic is almost there.

As of now, if you have a table with no designated timestamp and you select SAMPLE, it will build an invalid query

QuestDB version:

8.0.1

Grafana version:

11

Plugin version:

0.1.3

OS, in case of Docker specify Docker and the Host OS:

Mac OS

Full Name:

javier

Affiliation:

questdb

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?

Additional context

No response