[
https://issues.apache.org/jira/browse/BEAM-11357?focusedWorklogId=535578&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-535578
]
ASF GitHub Bot logged work on BEAM-11357:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jan/21 17:42
Start Date: 13/Jan/21 17:42
Worklog Time Spent: 10m
Work Description: lostluck commented on a change in pull request #13434:
URL: https://github.com/apache/beam/pull/13434#discussion_r556711306
##########
File path: sdks/go/pkg/beam/pardo_test.go
##########
@@ -61,3 +71,65 @@ func TestFormatParDoError(t *testing.T) {
t.Errorf("formatParDoError(testFunction,2,1) = %v, want = %v",
got, want)
}
}
+
+func TestAnnotations(t *testing.T) {
+ m := make(map[string][]byte)
+ m["privacy_property"] = []byte("differential_privacy")
+ doFn := &AnnotationsFn{Annotations: m}
+
+ p := NewPipeline()
+ s := p.Root()
+
+ values := [2]int{0, 1}
+ col := CreateList(s, values)
Review comment:
Consider using an Impulse instead, which simplifies the pipe to just the
2 transforms. The element would then be input `_ []byte` since impulse is
traditionally ignored.)
However, I'm not going to worry about it at this juncture, since it would
not meaningfully shrink the PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 535578)
Time Spent: 3.5h (was: 3h 20m)
> Support for annotations for transforms in Go SDK
> ------------------------------------------------
>
> Key: BEAM-11357
> URL: https://issues.apache.org/jira/browse/BEAM-11357
> Project: Beam
> Issue Type: New Feature
> Components: beam-model
> Reporter: Mirac Vuslat Basaran
> Priority: P2
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> See the [mail
> thread|https://lists.apache.org/thread.html/ra4f90560ac82bdbedfef36b3cd508da70ee7cf23383a0451d3875e45%40%3Cdev.beam.apache.org%3E]
> for a detailed explanation of the proposal.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)