Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support headers for message #108

Merged
merged 5 commits into from
Mar 21, 2024
Merged

feat: support headers for message #108

merged 5 commits into from
Mar 21, 2024

Conversation

yhl25
Copy link
Contributor

@yhl25 yhl25 commented Mar 19, 2024

Signed-off-by: Yashash H L <[email protected]>
@yhl25 yhl25 marked this pull request as draft March 19, 2024 08:08
Signed-off-by: Yashash H L <[email protected]>
@yhl25 yhl25 marked this pull request as ready for review March 21, 2024 01:19
@yhl25 yhl25 requested review from vigith and whynowy March 21, 2024 01:20
yhl25 added 2 commits March 21, 2024 15:19
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
Copy link
Member

@vigith vigith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document the exposed methods.

@@ -16,4 +16,9 @@ proto:
generate:
go generate ./...

.PHONY: image-push-all
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayildirim21 please review this makefile target and see if this is something we already worked on as part of the CI improvement task or something we can leverage to simplify our CI script.

Copy link
Member

@ayildirim21 ayildirim21 Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confrim that the existing script already implements this functionality, just need to run:

./hack/update_examples.sh -bp

Will open a PR to remove this makefile target.

Edit: #109

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not remove the target, instead let the target run ./hack/update_examples -bp

@@ -166,5 +166,5 @@ func generateKey(window *v1.Window, keys []string) string {
}

func buildDatum(request *v1.ReduceRequest) Datum {
return NewHandlerDatum(request.Payload.GetValue(), request.Payload.EventTime.AsTime(), request.Payload.Watermark.AsTime())
return NewHandlerDatum(request.Payload.GetValue(), request.Payload.EventTime.AsTime(), request.Payload.Watermark.AsTime(), request.Payload.Headers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetEventTime, GetWatermark, GetHeaders - same for below

Signed-off-by: Yashash H L <[email protected]>
@yhl25 yhl25 merged commit 526a7c6 into main Mar 21, 2024
3 checks passed
@yhl25 yhl25 deleted the headers branch March 21, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose Headers for Golang SDK
4 participants