Skip to content

Commit

Permalink
Use panic instead of errors inside the operator package (#14085)
Browse files Browse the repository at this point in the history
  • Loading branch information
systay authored Oct 10, 2023
1 parent fa4c980 commit e5eea9c
Show file tree
Hide file tree
Showing 38 changed files with 543 additions and 900 deletions.
5 changes: 1 addition & 4 deletions go/vt/vtgate/planbuilder/operator_transformers.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,7 @@ func getEvalEngingeExpr(ctx *plancontext.PlanningContext, pe *operators.ProjExpr
// useSimpleProjection uses nothing at all if the output is already correct,
// or SimpleProjection when we have to reorder or truncate the columns
func useSimpleProjection(ctx *plancontext.PlanningContext, op *operators.Projection, cols []int, src logicalPlan) (logicalPlan, error) {
columns, err := op.Source.GetColumns(ctx)
if err != nil {
return nil, err
}
columns := op.Source.GetColumns(ctx)
if len(columns) == len(cols) && elementsMatchIndices(cols) {
// the columns are already in the right order. we don't need anything at all here
return src, nil
Expand Down
Loading

0 comments on commit e5eea9c

Please sign in to comment.