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
LAST_VALUE({{ otherFeatureSet.name }}_v{{ otherFeatureSet.version }}_feature_timestamp IGNORE NULLS) over w AS {{ otherFeatureSet.name }}_v{{ otherFeatureSet.version }}_feature_timestamp,
WINDOW w AS (PARTITION BY {{ featureSet.entities | join(', ') }} ORDER BY event_timestamp, is_entity_table ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
44
+
) WHERE is_entity_table
45
+
{% if loop.last %}
46
+
{% else %}
47
+
UNION ALL
48
+
{% endif %}
49
+
{% endfor %}
50
+
), ts_coalesce AS (
37
51
SELECT
38
52
event_timestamp,
39
53
{{ fullEntitiesList | join(', ')}},
40
54
{% for featureSet in featureSets %}
41
55
LAST_VALUE({{ featureSet.name }}_v{{ featureSet.version }}_feature_timestamp IGNORE NULLS) over w AS {{ featureSet.name }}_v{{ featureSet.version }}_feature_timestamp,
42
56
{% endfor %}
43
-
is_entity_table
44
-
FROM union_features
45
-
WINDOW w AS (PARTITION BY source ORDER BY event_timestamp ASC)
46
-
) WHERE is_entity_table)
57
+
ROW_NUMBER() over w as rn
58
+
FROM ts_union
59
+
WINDOW w AS (PARTITION BY {{ fullEntitiesList | join(', ')}}, event_timestamp ORDER BY event_timestamp)
0 commit comments