You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/05/08 11:43:49 UTC

[GitHub] [iotdb] jixuan1989 commented on issue #5809: 0.12.5 升级到0.13.0后,聚合查询求和时没有数据的行不会补零,而是返回了“null”

jixuan1989 commented on issue #5809:
URL: https://github.com/apache/iotdb/issues/5809#issuecomment-1120402934

   > 聚合结果在时间序列没有数据时会返回 null,因为此时如果返回0的话就不知道是因为没有数据还是真正的sum值就是0。
   因此0.12.5返回 0 其实是个bug,0.13.0 修复了这一bug,后续 0.12.6也会修复这个bug。因此可能需要您对之前的代码判断做一些修改。
   
   hm... 
   if we have a time series `root.a.b`, but the series has no data. How about the following 4 sqls:
   1. select max(b) from root.*;
   2. select max(b) from root.* group by ([t1, t2], 5m);
   3. select max(b) from root.a;
   4. select max(b) from root.* group by ([t1, t2], 5m);
   5. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org