diff --git a/docs/en/05-basic/03-query.md b/docs/en/05-basic/03-query.md index 8da6d069a59..7fb8d7677a0 100644 --- a/docs/en/05-basic/03-query.md +++ b/docs/en/05-basic/03-query.md @@ -176,7 +176,7 @@ When using the window clause, the following rules should be observed: ### Timestamp Pseudocolumns -In the window aggregation query results, if the SQL does not specify the timestamp column in the output query results, the final results will not automatically include the time column information of the window. However, if you need to output the time window information corresponding to the aggregated query results in the results, you can use the timestamp-related pseudocolumns in the select clause, such as the start time of the time window (`_wstart`), the end time of the time window (`_wend`), the duration of the time window (`_wduration`), and the pseudocolumns related to the overall query window, such as the start time of the query window (`_qstart`) and the end time of the query window (`_qend`). Note that both the start and end times of the time window are closed intervals, and the duration of the time window is the value under the current time resolution of the data. For example, if the current database's time precision is milliseconds (ms), then 500 in the results represents the duration of the current time window is 500ms. +In the window aggregation query results, if the SQL does not specify the timestamp column in the output query results, the final results will not automatically include the time column information of the window. However, if you need to output the time window information corresponding to the aggregated query results in the results, you can use the timestamp-related pseudocolumns in the select clause, such as the start time of the time window (`_wstart`), the end time of the time window (`_wend`), the duration of the time window (`_wduration`), and the pseudocolumns related to the overall query window, such as the start time of the query window (`_qstart`) and the end time of the query window (`_qend`). It should be noted that, except that the end time of the INTERVAL window is an open interval, the start time and end time of other time windows are both closed intervals, and the duration of the time window is the value under the current time resolution of the data. For example, if the current database's time precision is milliseconds (ms), then 500 in the results represents the duration of the current time window is 500ms. ### Time Windows diff --git a/docs/zh/05-basic/03-query.md b/docs/zh/05-basic/03-query.md index 0c02cce1680..c6e7e3da439 100644 --- a/docs/zh/05-basic/03-query.md +++ b/docs/zh/05-basic/03-query.md @@ -173,7 +173,7 @@ window_clause: { ### 时间戳伪列 -在窗口聚合查询结果中,如果 SQL 中没有指定输出查询结果中的时间戳列,那么最终结果中将不会自动包含窗口的时间列信息。然而,如果你需要在结果中输出聚合查询结果所对应的时间窗口信息,可以在 select 子句中使用与时间戳相关的伪列,如时间窗口起始时间(_wstart)、时间窗口结束时间(_wend)、时间窗口持续时间(_wduration),以及与查询整体窗口相关的伪列,如查询窗口起始时间(_qstart)和查询窗口结束时间(_qend)。需要注意的是,时间窗口起始时间和结束时间均是闭区间,时间窗口持续时间是数据当前时间分辨率下的数值。例如,如果当前数据库的时间精度是毫秒(ms),那么结果中的 500 表示当前时间窗口的持续时间是 500ms。 +在窗口聚合查询结果中,如果 SQL 中没有指定输出查询结果中的时间戳列,那么最终结果中将不会自动包含窗口的时间列信息。然而,如果你需要在结果中输出聚合查询结果所对应的时间窗口信息,可以在 select 子句中使用与时间戳相关的伪列,如时间窗口起始时间(_wstart)、时间窗口结束时间(_wend)、时间窗口持续时间(_wduration),以及与查询整体窗口相关的伪列,如查询窗口起始时间(_qstart)和查询窗口结束时间(_qend)。需要注意的是,除 INTERVAL 窗口的结束时间为开区间外,其他时间窗口起始时间和结束时间均是闭区间,时间窗口持续时间是数据当前时间分辨率下的数值。例如,如果当前数据库的时间精度是毫秒(ms),那么结果中的 500 表示当前时间窗口的持续时间是 500ms。 ### 时间窗口