Skip to content

Commit

Permalink
Merge branch 'master' into dayofweek_year
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliqi authored Mar 16, 2022
2 parents 4fd5528 + 383f0bb commit e4a99b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions planner/core/fragment.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ func (e *mppTaskGenerator) generateMPPTasksForFragment(f *Fragment) (tasks []*kv
}
if f.TableScan != nil {
tasks, err = e.constructMPPTasksImpl(context.Background(), f.TableScan)
if err == nil && len(tasks) == 0 {
err = errors.New(
"In mpp mode, the number of tasks for table scan should not be zero. " +
"Please set tidb_allow_mpp = 0, and then rerun sql.")
}
} else {
childrenTasks := make([]*kv.MPPTask, 0)
for _, r := range f.ExchangeReceivers {
Expand Down

0 comments on commit e4a99b3

Please sign in to comment.