Skip to content

Commit

Permalink
added client side filtration of old records
Browse files Browse the repository at this point in the history
  • Loading branch information
midavadim committed May 9, 2024
1 parent a60dba2 commit e81326a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,17 @@ definitions:
http_method: POST
paginator:
$ref: "#/definitions/paginator"
record_selector:
$ref: "#/definitions/selector"
record_filter:
condition: |
{%- set condition = namespace(value=true) -%}
{%- for state in stream_state.get('states', []) -%}
{%- if state['partition']['id'] == stream_slice['id'] and state['cursor']['last_seen'] >= record['$properties']['$last_seen'] -%}
{%- set condition.value = false -%}
{%- endif -%}
{%- endfor -%}
{{ condition.value }}
partition_router:
class_name: "source_mixpanel.components.CohortMembersSubstreamPartitionRouter"
parent_stream_configs:
Expand Down

0 comments on commit e81326a

Please sign in to comment.