diff --git a/presto-native-execution/presto_cpp/main/operators/LocalShuffle.cpp b/presto-native-execution/presto_cpp/main/operators/LocalShuffle.cpp index 16a8a972d785..fc5b94a45bdc 100644 --- a/presto-native-execution/presto_cpp/main/operators/LocalShuffle.cpp +++ b/presto-native-execution/presto_cpp/main/operators/LocalShuffle.cpp @@ -463,7 +463,7 @@ std::vector> LocalShuffleReader::nextSorted( uint64_t bufferUsed = 0; while (auto* stream = merge_->next()) { - auto* reader = velox::checked_pointer_cast(stream); + auto* reader = velox::checkedPointerCast(stream); const auto data = reader->currentValue(); if (bufferUsed + data.size() > maxBytes) { diff --git a/presto-native-execution/presto_cpp/main/operators/ShuffleRead.cpp b/presto-native-execution/presto_cpp/main/operators/ShuffleRead.cpp index bc85443dea74..bc22c9a72559 100644 --- a/presto-native-execution/presto_cpp/main/operators/ShuffleRead.cpp +++ b/presto-native-execution/presto_cpp/main/operators/ShuffleRead.cpp @@ -83,7 +83,7 @@ RowVectorPtr ShuffleRead::getOutput() { } rows_.reserve(numRows); for (const auto& page : currentPages_) { - auto* batch = checked_pointer_cast(page.get()); + auto* batch = checkedPointerCast(page.get()); const auto& rows = batch->rows(); for (const auto& row : rows) { rows_.emplace_back(row);