electric-sql / electric-sql/d2ts

min and max aggregate functions ignore multiplicity

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
562
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Min and Max functions appear to find the min/max value of _all_ values that ever existed in the stream, regardless of multiplicity. To me, this doesn't seem like the desired behavior. On the other hand, the other aggregate statistical operators (avg, median and mode) all appear to account for stream entries being 'removed' by reversing the aggregation for multiplicities of -1.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.