Threshold should only produce positive updates#2466
Conversation
|
Hang on, this is a differential bug by my reckoning. |
|
I have an alternative fix coming in shortly and then we can discuss! |
You'll have to convince me. :) I can see it being a doc bug, but I think |
|
TimelyDataflow/differential-dataflow#264 The docs on consolidate state: And yet if the slice has one element like |
benesch
left a comment
There was a problem hiding this comment.
Might as well do this too!
|
@frankmcsherry could you add a relevant release note to |
|
Tbh, I'm not sure what to add. There was a bug that caused a crash, and it doesn't crash any more. There should be zero user-facing changes, other than fewer crashes. Any tips? |
|
Looking at the description of the file, I don't think this qualifies as a "major bug fix". I'm up for being corrected on that, though. |
Threshold would set negative diffs to zero, but that confused other parts of the system. Specifically (for future ref) differential's
consolidatemethod, which we used, doesn't seem to expect zero diffs and does not proactively filter out those that it does not create.Fixes MaterializeInc/database-issues#866