Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interval 时间划分有问题 #27897

Closed
jinghuijiang1993 opened this issue Sep 14, 2024 · 5 comments
Closed

interval 时间划分有问题 #27897

jinghuijiang1993 opened this issue Sep 14, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@jinghuijiang1993
Copy link

一个 3h 和 4h 间隔 为啥时间起始不一样��� 不是都从 0 点开始 我使用了伪劣 请仔细看下我的结果 时间间隔的规则是什么
WechatIMG311
WechatIMG312
Bug Description
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Type in '....'
  3. See error

Expected Behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. CentOS 7.0]
  • Memory, CPU, current Disk Space
  • TDengine Version [e.g. 1.6.1.7]

Additional Context
Add any other context about the problem here.

@jinghuijiang1993 jinghuijiang1993 added the bug Something isn't working label Sep 14, 2024
@yu285
Copy link
Contributor

yu285 commented Sep 18, 2024

SQL 不完整,请补充一下

@yu285 yu285 added help wanted Extra attention is needed and removed bug Something isn't working labels Sep 18, 2024
@jinghuijiang1993
Copy link
Author

jinghuijiang1993 commented Sep 18, 2024 via email

@yu285
Copy link
Contributor

yu285 commented Sep 24, 2024

规律是从UTC-0时区,1970年1月1日 0点0分开始切分窗口,所以不是从你指���的时间开始切分的,如果想自定义,需要自己控制偏移量:参考文章https://mp.weixin.qq.com/s/Kc7wzzRiK4XhAsL48rD6dg

@yu285 yu285 closed this as completed Sep 24, 2024
@jinghuijiang1993
Copy link
Author

jinghuijiang1993 commented Sep 24, 2024 via email

@yu285
Copy link
Contributor

yu285 commented Sep 25, 2024

我想说明的是,不管是哪个时区进行 我的两个 sql 分别是 3h 和 4h 去进行时间间隔  这两个时间间隔都是可以被 24h 整除的  也就是说即使是 1970年1月1日 0点0分 0 秒开始进行切分  不应该每次都有 0 点 0 分 0 秒吗 On September 24, 2024 at 2:35:04 PM, Yu Chen @.***) wrote: 规律是从UTC-0时区,1970年1月1日 0点0分开始切分窗口,所以不是从你指定的时间开始切分的,如果想自定义,需要自己控制偏移量:参考文章https://mp.weixin.qq.com/s/Kc7wzzRiK4XhAsL48rD6dg — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

对呀,你没发现你两个查询都有8吗,这就是对齐时候的时间点 0 ���上东八区的 8 小时。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
2 participants