Update 12-distinguished.md

This commit is contained in:
liuyao 2024-05-06 09:56:47 +08:00 committed by GitHub
parent 44100139a4
commit 9ad5c94048
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ window_clause: {
}
```
其中interval_val 和 sliding_val 都表示时间段, 语法上支持三种方式,举例说明如下:
其中interval_val 和 sliding_val 都表示时间段interval_offset 表示窗口偏移量interval_offset必须小于interval_val。语法上支持三种方式,举例说明如下:
- INTERVAL(1s, 500a) SLIDING(1s), 自带时间单位的形式,其中的时间单位是单字符表示, 分别为: a (毫秒), b (纳秒), d (天), h (小时), m (分钟), n (月), s (秒), u (微妙), w (周), y (年).
- INTERVAL(1000, 500) SLIDING(1000), 不带时间单位的形式,将使用查询库的时间精度作为默认时间单位,当存在多个库时默认采用精度更高的库.
- INTERVAL('1s', '500a') SLIDING('1s'), 自带时间单位的字符串形式,字符串内部不能有任何空格等其它字符.