damccorm commented on code in PR #22897:
URL: https://github.com/apache/beam/pull/22897#discussion_r956327308
##########
sdks/go/pkg/beam/core/runtime/graphx/translate.go:
##########
@@ -1376,3 +1398,13 @@ func UpdateDefaultEnvWorkerType(typeUrn string, pyld
[]byte, p *pipepb.Pipeline)
}
return errors.Errorf("unable to find dependency with %q role in
environment with ID %q,", URNArtifactGoWorkerRole, defaultEnvId)
}
+
+// UserStateCoderId returns the coder id of a user state
+func UserStateCoderId(ps state.PipelineState) string {
+ return fmt.Sprintf("val_%v", ps.StateKey())
+}
+
+// UserStateCoderId returns the key coder id of a user state
Review Comment:
Thanks! Hopefully that saves a follow up linting 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]