[bugfix]fix getAvgSizePerGranularity logic in DerivativeDataSourceManager(materializedview) (#8929)

* fix getAvgSizePerGranularity in DerivativeDataSourceManager

* revert

* redo
This commit is contained in:
Fangyuan Deng 2019-12-13 09:27:02 +08:00 committed by Jihoon Son
parent 9236dd9467
commit 41f30e53a6
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public class DerivativeDataSourceManager
return null;
}
)
.first();
.list();
return intervals.isEmpty() ? 0L : totalSize / intervals.size();
}
}