Skip to content

[Bug] apache-iotdb-datasource Grafana插件$__from与$__to失效 #14685

@superliujian

Description

@superliujian

Search before asking

  • I searched in the issues and found nothing similar.

Version

IOTDB: 1.3.3
Grafana plugin: 1.0.1
Grafana: 11.4

Describe the bug and provide the minimal reproduce step

  1. 正常添加一个time series图表,假设SQL为: select value from root.device where time >=$__from and time<=$__to
  2. 保存,可以看到一切正常,随着时间的推移,图形也在同步更新
  3. 点击编辑图表,进入图表编辑界面
  4. 可以看到之前的time >=$__from and time<=$__to已经变成了time >=xxxxx and time<=xxxxx
  5. 不做任何修改直接退出
  6. 图表不再同步更新,而上永远停留在了第4步中的时间戳

What did you expect to see?

$__from与$__to 始终生效

What did you see instead?

一般通过select value from root.device where time >=$__from and time<=$__to 定义好图表后保存,一切显示正常没有问题。

但是当再次进入Panel编辑页面时,可以看到定义的 time >=$__from and time<=$__to 已经被替换成了实际的时间值,这时候哪怕不做任何编辑就退出,那么该图表的from和to时间就会停留在之前看到的实际时间上,不会再随着时间推移而更新。也就是说$__from与$__to 变量替换失效了。

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions