* qualify

* data value

* moving it to flatten event

---------

Co-authored-by: forgash_ <jmfxyz@pm.me>
This commit is contained in:
WHYTEWYLL 2024-05-06 19:22:53 +03:00 committed by GitHub
parent a0e441d668
commit f9be7412e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,8 @@ flatten_events AS (
LATERAL FLATTEN(
input => events
) e
QUALIFY ROW_NUMBER() OVER (PARTITION BY event_id ORDER BY _inserted_timestamp DESC) = 1
),
attributes AS (
SELECT