taosdata / taosdata/TDengine

interval(1h) fill(VALUE,0) 查询一段时间内没有任何数据时,返回结果为空,期望是按照时间切片返回结果

Open
#33,033 5 comments 0 reactions 1 assignee View on GitHub

@yu285 is already working on this.

Since Sep 26, 2025.

bug
Dominant language
C
Stars
25.1k
Forks
5k
Avg merge
4d 59m
Merged PRs (30d)
7

Description

SELECT sum(number_value) as number_value,_wstart as ts,device_id FROM super_device_property WHERE device_id in (9) AND property = '100' AND ts between now - 6h and now partition by device_id INTERVAL(1h) FILL(VALUE, 0)

sql result

Image
SELECT sum(number_value) as number_value,_wstart as ts,device_id FROM super_device_property WHERE device_id in (9) AND property = '100' AND ts between now - 6h and now - 1h partition by device_id INTERVAL(1h) FILL(VALUE, 0)
Image

大佬,问下这个要怎么解决呢?非常感谢

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.