You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a table events that contains the timestamps and source for all changes that occur across several related streams that update independently. I'm trying to perform a query using the events table to get the current state from one of the related tables as of the event time.
I've attempted this by performing a lateral join of events with a nested SELECT DISTINCT ON(...) FROM related r. Unfortunately, the results from related are not distinct.
Describe the bug
I have a table
events
that contains the timestamps and source for all changes that occur across several related streams that update independently. I'm trying to perform a query using theevents
table to get the current state from one of the related tables as of the event time.I've attempted this by performing a lateral join of
events
with a nestedSELECT DISTINCT ON(...) FROM related r
. Unfortunately, the results fromrelated
are not distinct.Error message/log
To Reproduce
Expected behavior
I expect to see results equal to:
Instead I see duplicate results for device_id = 2
How did you deploy RisingWave?
The version of RisingWave
Additional context
No response
The text was updated successfully, but these errors were encountered: