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

Remove runtime/sam/op/join.New error return param #5638

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions compiler/kernel/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,7 @@ func (b *Builder) compile(o dag.Op, parents []zbuf.Puller) ([]zbuf.Puller, error
default:
return nil, fmt.Errorf("unknown kind of join: '%s'", o.Style)
}
join, err := join.New(b.rctx, anti, inner, leftParent, rightParent, leftKey, rightKey, leftDir, rightDir, lhs, rhs, b.resetters)
if err != nil {
return nil, err
}
join := join.New(b.rctx, anti, inner, leftParent, rightParent, leftKey, rightKey, leftDir, rightDir, lhs, rhs, b.resetters)
return []zbuf.Puller{join}, nil
case *dag.Merge:
b.resetResetters()
Expand Down
4 changes: 2 additions & 2 deletions runtime/sam/op/join/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Op struct {
}

func New(rctx *runtime.Context, anti, inner bool, left, right zbuf.Puller, leftKey, rightKey expr.Evaluator,
leftDir, rightDir order.Direction, lhs []*expr.Lval, rhs []expr.Evaluator, resetter expr.Resetter) (*Op, error) {
leftDir, rightDir order.Direction, lhs []*expr.Lval, rhs []expr.Evaluator, resetter expr.Resetter) *Op {
var o order.Which
switch {
case leftDir != order.Unknown:
Expand Down Expand Up @@ -66,7 +66,7 @@ func New(rctx *runtime.Context, anti, inner bool, left, right zbuf.Puller, leftK
compare: expr.NewValueCompareFn(o, true),
cutter: expr.NewCutter(rctx.Zctx, lhs, rhs),
types: make(map[int]map[int]*super.TypeRecord),
}, nil
}
}

// Pull implements the merge logic for returning data from the upstreams.
Expand Down