Skip to content
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
7 changes: 3 additions & 4 deletions presto-native-execution/presto_cpp/main/PrestoServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,8 @@ void PrestoServer::initializeThreadPools() {

driverExecutor_ = std::make_unique<folly::CPUThreadPoolExecutor>(
numDriverCpuThreads, threadFactory);
driverCpuExecutor_ =
velox::checked_pointer_cast<folly::CPUThreadPoolExecutor>(
driverExecutor_.get());
driverCpuExecutor_ = velox::checkedPointerCast<folly::CPUThreadPoolExecutor>(
driverExecutor_.get());

const auto numIoThreads = std::max<size_t>(
systemConfig->httpServerNumIoThreadsHwMultiplier() * hwConcurrency, 1);
Expand All @@ -861,7 +860,7 @@ void PrestoServer::initializeThreadPools() {
numSpillerCpuThreads,
std::make_shared<folly::NamedThreadFactory>("Spiller"));
spillerCpuExecutor_ =
velox::checked_pointer_cast<folly::CPUThreadPoolExecutor>(
velox::checkedPointerCast<folly::CPUThreadPoolExecutor>(
spillerExecutor_.get());
}
const auto numExchangeHttpClientIoThreads = std::max<size_t>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ LocalShuffleReader::nextSorted(uint64_t maxBytes) {
uint64_t bufferUsed = 0;

while (auto* stream = merge_->next()) {
auto* reader = velox::checked_pointer_cast<SortedFileInputStream>(stream);
auto* reader = velox::checkedPointerCast<SortedFileInputStream>(stream);
const auto data = reader->currentValue();

if (bufferUsed + data.size() > maxBytes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ RowVectorPtr ShuffleRead::getOutput() {
VELOX_CHECK_EQ(nextRow_, 0);
size_t numRows{0};
for (const auto& page : currentPages_) {
auto* batch = checked_pointer_cast<ShuffleSerializedPage>(page.get());
auto* batch = checkedPointerCast<ShuffleSerializedPage>(page.get());
VELOX_CHECK_LE(batch->size(), std::numeric_limits<int32_t>::max());
rawInputBytes += page->size();
const auto pageRows = page->numRows().value();
Expand All @@ -85,7 +85,7 @@ RowVectorPtr ShuffleRead::getOutput() {
}
rows_.reserve(numRows);
for (const auto& page : currentPages_) {
auto* batch = checked_pointer_cast<ShuffleSerializedPage>(page.get());
auto* batch = checkedPointerCast<ShuffleSerializedPage>(page.get());
const auto& rows = batch->rows();
for (const auto& row : rows) {
rows_.emplace_back(row);
Expand Down
2 changes: 1 addition & 1 deletion presto-native-execution/velox
Submodule velox updated 130 files
Loading