MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Fix for first rows being skipped for projections #64

Closed Mithgroth closed 1 year ago

Mithgroth commented 2 years ago

Duncan hey, commit 9e0776dff3f5058984caed1cb3f4e834efe05705, in TableEventStreamReader reads:

TableQuery.GenerateFilterCondition("RowKey",
                         QueryComparisons.GreaterThanOrEqual,
                         SequenceNumberAsString(StartingSequenceNumber)

is changed to

RowKey gt {SequenceNumberAsString(StartingSequenceNumber)}

gt should be ge instead to keep the same comparison. At the moment while projecting, first rows are skipped.

And eh, <3 your work, thanks for this awesome library :)

MerrionComputing commented 1 year ago

Good catch - thank you