Skip to content

Commit

Permalink
Handle Job.Parallelize error in lakeCompiler.NewLakeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
nwt committed Oct 26, 2023
1 parent 92b0acd commit b402680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/lake.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func (l *lakeCompiler) NewLakeQuery(octx *op.Context, program ast.Seq, paralleli
parallelism = Parallelism
}
if parallelism > 1 {
job.Parallelize(parallelism)
if err := job.Parallelize(parallelism); err != nil {
return nil, err
}
}
if err := job.Build(); err != nil {
return nil, err
Expand Down

0 comments on commit b402680

Please sign in to comment.