Skip to content

Commit

Permalink
[native] Advance Velox
Browse files Browse the repository at this point in the history
To pull in facebookincubator/velox#7479 which
we can use to address some errors we've been seeing when the
Coordinator gets the status from the Worker.
  • Loading branch information
kevinwilfong authored and amitkdutta committed Nov 10, 2023
1 parent 8815076 commit ec00815
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ std::string toVeloxConfig(const std::string& name) {
QueryConfig::kAggregationSpillMemoryThreshold},
{"native_simplified_expression_evaluation_enabled",
QueryConfig::kExprEvalSimplified},
{"native_aggregation_spill_all", QueryConfig::kAggregationSpillAll},
{"native_join_spill_memory_threshold",
QueryConfig::kJoinSpillMemoryThreshold},
{"native_order_by_spill_memory_threshold",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,25 +325,26 @@ std::unique_ptr<exec::SerializedPage> waitForNextPage(
const std::shared_ptr<exec::ExchangeQueue>& queue) {
bool atEnd;
facebook::velox::ContinueFuture future;
auto page = queue->dequeueLocked(&atEnd, &future);
auto pages = queue->dequeueLocked(1, &atEnd, &future);
EXPECT_LE(pages.size(), 1);
EXPECT_FALSE(atEnd);
if (page == nullptr) {
if (pages.empty()) {
std::move(future).get();
page = queue->dequeueLocked(&atEnd, &future);
EXPECT_TRUE(page != nullptr);
pages = queue->dequeueLocked(1, &atEnd, &future);
EXPECT_EQ(pages.size(), 1);
}
return page;
return std::move(pages.front());
}

void waitForEndMarker(const std::shared_ptr<exec::ExchangeQueue>& queue) {
bool atEnd;
facebook::velox::ContinueFuture future;
auto page = queue->dequeueLocked(&atEnd, &future);
ASSERT_TRUE(page == nullptr);
auto pages = queue->dequeueLocked(1, &atEnd, &future);
ASSERT_TRUE(pages.empty());
if (!atEnd) {
std::move(future).get();
page = queue->dequeueLocked(&atEnd, &future);
ASSERT_TRUE(page == nullptr);
pages = queue->dequeueLocked(1, &atEnd, &future);
ASSERT_TRUE(pages.empty());
ASSERT_TRUE(atEnd);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ TEST_F(QueryContextManagerTest, nativeSessionProperties) {
EXPECT_FALSE(queryCtx->queryConfig().joinSpillEnabled());
EXPECT_TRUE(queryCtx->queryConfig().validateOutputFromOperators());
EXPECT_EQ(queryCtx->queryConfig().spillWriteBufferSize(), 1024);
EXPECT_TRUE(queryCtx->queryConfig().aggregationSpillAll());
}

TEST_F(QueryContextManagerTest, defaultSessionProperties) {
Expand All @@ -67,7 +66,6 @@ TEST_F(QueryContextManagerTest, defaultSessionProperties) {
EXPECT_TRUE(queryCtx->queryConfig().joinSpillEnabled());
EXPECT_FALSE(queryCtx->queryConfig().validateOutputFromOperators());
EXPECT_EQ(queryCtx->queryConfig().spillWriteBufferSize(), 1L << 20);
EXPECT_TRUE(queryCtx->queryConfig().aggregationSpillAll());
}

} // namespace facebook::presto
2 changes: 1 addition & 1 deletion presto-native-execution/velox
Submodule velox updated 192 files

0 comments on commit ec00815

Please sign in to comment.