Skip to content

[PDR][Lake] Update predictPredictions and predictSlots to feature lastEventTimestamp #760

Description

@idiom-bytes

Motivation

As part of Incremental Lake + Analytics we want to make it easier to fetch/build our data lake incrementally.

To do so, for [1:n_event] entity tables like predictionPredictions and predictionSlots, we introduce a new parameter lastEventTimestamp .

lastEventTimestamp

I had outlined it as Solution B (and we're still working towards having all data saved on local_lake, but I think this will still reduce a lot of steps/work).

Where the last event to be processed, updates the param like such lastEventTimestamp = max(lastEventTimestamp, newEventTimestamp)

This param can then be filtered via lastEventTimestamp_lte or lastEventTimestamp_gte and enables us to approach all of this with less work and more ease.

DoD:

  • predictPredictions table features lastEventTimestamp and is updated as described above
  • predictSlots table features lastEventTimestamp and is updated as described above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions