Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stream analytics query union

I have issue with stream analytics query UNION operation result.

The following query if part one has no rows return, part two has 5 rows return, the UNION suppose to return 5 rows as result, but it return nothing.

SELECT EventKey, Events.ACP.EventType, Event.ACP.Details, NULL Involved FROM Input1
WHERE Events.ACP IS NOT NULL

UNION

SELECT EventKey, Events.MED.EventType, Event.MED.Details, Event.MED.Involved FROM Input1
WHERE Events.MED IS NOT NULL

Run each query will have correct number of result, but after union operation return nothing.

Regards

like image 228
frank Avatar asked Aug 31 '26 20:08

frank


1 Answers

Union will produce a result for time stamp T only after both sides of the union reaches at least T. If one of the sides does not have data, then this will be controlled by your late arrival policy. Output should be produced after late arrival window.

like image 59
Vignesh Chandramohan Avatar answered Sep 02 '26 15:09

Vignesh Chandramohan