Skip to content

Commit

Permalink
feat: Add ID and numDelivered fields to Datum. (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Hao <[email protected]>
  • Loading branch information
xdevxy authored Apr 6, 2023
1 parent f9e5320 commit 57af86f
Show file tree
Hide file tree
Showing 16 changed files with 560 additions and 134 deletions.
235 changes: 161 additions & 74 deletions pkg/apis/proto/function/v1/udfunction.pb.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions pkg/apis/proto/function/v1/udfunction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ message Watermark {
// future we can add LATE, ON_TIME etc.
}

/**
* Metadata of a datum element.
*/
message Metadata {
string id = 1;
uint64 num_delivered = 2;
}

/**
* Datum represents a datum element.
*/
Expand All @@ -44,6 +52,7 @@ message Datum {
bytes value = 2;
EventTime event_time = 3;
Watermark watermark = 4;
Metadata metadata = 5;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/proto/function/v1/udfunction_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

149 changes: 113 additions & 36 deletions pkg/apis/proto/sink/v1/udsink.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion pkg/apis/proto/sink/v1/udsink.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ message Datum {
bytes value = 2;
EventTime event_time = 3;
Watermark watermark = 4;
string id = 5;
Metadata metadata = 5;
}

/**
* Metadata of a datum element.
*/
message Metadata {
string id = 1;
uint64 num_delivered = 2;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/proto/sink/v1/udsink_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57af86f

Please sign in to comment.