[Bug] Grafana Plugin - variables not accepted in SQL "Drop Down List" query editor
- Lenguaje dominante
- Java
- Estrellas
- 6.4k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 115
Descripción
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
IoTDB v1.3.2 in docker on MacOS
### Describe the bug and provide the minimal reproduce step
A variable for a device path has been created as per instructions.
This variable can be used successfully in the "SQL Full-Customized" query editor
As per the excellent documentation [1]
> Both SQL: Full Customized and *SQL: Drop-down List* input methods support the variable and template functions of grafana
However, trying to add the sensor path at the dropdown element shown as `"$endpoint"` below ...
[root] > [dropdown-sg] > "$endpoint"
... I get the following error:
> $endpoint is illegal, unquoted node name can only consist of digits, characters and underscore, or start or end with wildcard
Note: I have tried `$endpoint` `${endpoint}` and `{{endpoint}}` form of variable template syntax.
[1]: https://iotdb.apache.org/UserGuide/latest/Ecosystem-Integration/Grafana-Plugin.html#create-a-new-panel
### What did you expect to see?
Variable template syntax shown in path element instead of regular path component from dropdown
### What did you see instead?
Error
### Anything else?
I notice the source repo for the grafana plugin (iotdb-extras) does not have any issues tracked. I can re-submit there if required.
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Guía de contribución
Línea de trabajo
Empieza reproduciendo el problema en el editor SQL Drop-down List del plugin de Grafana con IoTDB v1.3.2 y comparándolo con el editor SQL Full-Customized. Después, inspecciona el código fuente del plugin en iotdb-extras y la documentación enlazada del plugin de Grafana. Se considera terminado cuando una variable de ruta de dispositivo se acepta en el editor desplegable en lugar de analizarse como un nodo de ruta literal ilegal.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- grafana, sql
- Área
- databases, observability
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100