lostluck commented on code in PR #24508:
URL: https://github.com/apache/beam/pull/24508#discussion_r1043577747


##########
sdks/go/pkg/beam/core/runtime/exec/datasource.go:
##########
@@ -453,7 +454,7 @@ func (n *DataSource) Checkpoint() (SplitResult, 
time.Duration, bool, error) {
 // sent to this DataSource, and is used to be able to perform accurate splits
 // even if the DataSource has not yet received all its elements. A bufSize of
 // 0 or less indicates that its unknown, and so uses the current known size.
-func (n *DataSource) Split(splits []int64, frac float64, bufSize int64) 
(SplitResult, error) {
+func (n *DataSource) Split(ctx context.Context, splits []int64, frac float64, 
bufSize int64) (SplitResult, error) {
        if n == nil {
                return SplitResult{}, fmt.Errorf("failed to split at requested 
splits: {%v}, DataSource not initialized", splits)

Review Comment:
   These are programmer errors. Unless you're going to now tell me that it's 
allowed for a ProcessBundleRequest to not have a root transform somehow that 
has a datasource.  (Speaking of which, have we added the datasource & datasink 
urns to the protos yet?)



-- 
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]

Reply via email to