我在这里阅读了定义https://docs.aws.amazon.com/kinesisanalytics/latest/sqlref/sql-reference-monotonic-expressions-operators.html,但是我仍然不清楚。我知道单调意味着上升或下降。这是否意味着单调列是升序、降序、严格升序或严格降序?它必须是唯一的还是可以包含重复项?
这个问题的上下文是我尝试使用基于 a 的 a ORDER BY
,但我得到了错误(我认为 TIMESTAMPS 是)。WINDOW
TIMESTAMP
The leading column of an ORDER BY statement must be monotonic
例子:
WINDOW fifteenSecondWindow as (
PARTITION BY "peerId" (none unique)
ORDER BY "emissionTime" (is unique for each partition of peers, but may not be globally unique)
RANGE INTERVAL '15' SECOND PRECEDING
);