在Stream Analytics Azure中基于时间发送事件的限制

问题描述 投票:0回答:1

在我的Azure流分析作业中,要限制事件在一天的特定时间之后发送到服务总线队列。

SA查询:

Select
    *
INTO
    servicebusqueue
FROM
    eventhub
Where name  = 'abc'
*AND Time < 1 PM*

如何编写“时间<1PM”的查询?

azure streaming azure-stream-analytics stream-analytics
1个回答
0
投票

使用DATEPART应该可以工作(目前尚未测试)

假设Time是您输入数据中的一个字段。

Select
    *
INTO
    servicebusqueue
FROM
    eventhub
Where name  = 'abc'
AND DATEPART(hour, Time) < 13
© www.soinside.com 2019 - 2024. All rights reserved.