Stitch doesn't seem to work for Partitioned streams
nsulikowski opened this issue · comments
[Fact]
public void PartitionedStreamEvent_EndStart_Stitching_Test()
{
PartitionedStreamEvent<string, IONRecord> last;
var input = new List<PartitionedStreamEvent<string, IONRecord>>
{
(last = PartitionedStreamEvent.CreateStart(key: "c1", startTime: 1, payload: new IONRecord { Id = "c1", Data = "shortdes1" })),
PartitionedStreamEvent.CreateEnd(key: "c1", endTime: 7, originalStartTime: last.StartTime, payload: last.Payload),
(last = PartitionedStreamEvent.CreateStart(key: "c1", startTime: 7, payload: new IONRecord { Id = "c1", Data = "shortdes1" }))
}.ToObservable().ToStreamable();
UnitTests_Funcs.RunAndAssert(new[]
{
" # 01234567 ",
" 1 (c1)[Start: 1, {Id:c1, Data:shortdes1}] [ ",
" 2 (c1)[End: 7,1, {Id:c1, Data:shortdes1}] ------) ",
" 3 (c1)[Start: 7, {Id:c1, Data:shortdes1}] [ ",
" 4 [LowWatermark: +inf] ",
}, input, onlyData: false);
var output = input.Stitch();
UnitTests_Funcs.RunAndAssert(new[]
{
" # 01234567 ",
" 1 (c1)[Start: 1, {Id:c1, Data:shortdes1}] [ ",
" 2 (c1)[End: 7,1, {Id:c1, Data:shortdes1}] ------) ",
" 3 (c1)[Start: 7, {Id:c1, Data:shortdes1}] [ ",
" 4 [LowWatermark: +inf] ",
}, output, onlyData: false);
}
Fixed with #81
thanks
please push to nuget
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Peter Freiling <notifications@github.com>
Sent: Friday, May 3, 2019 3:46 PM
To: Microsoft/Trill
Cc: Nestor Sulikowski; Author
Subject: Re: [Microsoft/Trill] Stitch doesn't seem to work for Partitioned streams (#80)
Closed #80<#80>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#80 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAPYZ56XM67OWGEMFS4F4RTPTSI7PANCNFSM4HKV3UDA>.
Done.
it works
thanks
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: James Terwilliger <notifications@github.com>
Sent: Monday, May 6, 2019 1:36 PM
To: Microsoft/Trill
Cc: Nestor Sulikowski; Author
Subject: Re: [Microsoft/Trill] Stitch doesn't seem to work for Partitioned streams (#80)
Done.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#80 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAPYZ52PVXJDATYM2QJOOITPUBUARANCNFSM4HKV3UDA>.