Open Bug 2077148 Opened 1 month ago Updated 1 month ago

Expose event `flows` metadata in `events_stream`

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: travis_, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Carry the new flows field into events_stream and add scalar columns for the common single-flow case.

  • Keep flows as an array column. Don't unnest it. An event in two flows would become two rows and change COUNT(*) for every existing query.
  • Add flow_name and flow_seq columns, populated when the event has exactly one flows entry and null otherwise, so most queries need no UNNEST.
  • Document that a repeated field is never null. An event with no flow has ARRAY_LENGTH(flows) = 0, not flows IS NULL. A null flow_name doesn't by itself mean the event has no flow.
Blocks: 2077152
You need to log in before you can comment on or make changes to this bug.