Skip to content

Commit 66db087

Browse files
committed
misc: Advance Velox
1 parent 5205309 commit 66db087

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

presto-native-execution/presto_cpp/main/SessionProperties.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ SessionProperties::SessionProperties() {
562562
std::to_string(c.maxOutputBatchRows()));
563563

564564
addSessionProperty(
565-
kRowSizeTrackingEnabled,
566-
"A fallback for average row size estimate when not supported for certain readers. Turned on by default.",
567-
BOOLEAN(),
565+
kRowSizeTrackingMode,
566+
"Enable (reader) row size tracker as a fallback to file level row size estimates.",
567+
INTEGER(),
568568
true,
569-
QueryConfig::kRowSizeTrackingEnabled,
570-
std::to_string(c.rowSizeTrackingEnabled()));
569+
QueryConfig::kRowSizeTrackingMode,
570+
std::to_string(static_cast<int32_t>(c.rowSizeTrackingMode())));
571571

572572
addSessionProperty(
573573
kUseVeloxGeospatialJoin,

presto-native-execution/presto_cpp/main/SessionProperties.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ class SessionProperties {
365365

366366
/// Enable (reader) row size tracker as a fallback to file level row size
367367
/// estimates.
368-
static constexpr const char* kRowSizeTrackingEnabled =
369-
"row_size_tracking_enabled";
368+
static constexpr const char* kRowSizeTrackingMode = "row_size_tracking_mode";
370369

371370
/// If this is true, then the protocol::SpatialJoinNode is converted to a
372371
/// velox::core::SpatialJoinNode. Otherwise, it is converted to a

presto-native-execution/presto_cpp/main/tests/QueryContextManagerTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <gtest/gtest.h>
1717
#include "presto_cpp/main/TaskManager.h"
1818
#include "presto_cpp/main/common/Configs.h"
19+
#include "velox/core/QueryConfig.h"
1920

2021
namespace facebook::presto {
2122

@@ -79,7 +80,9 @@ TEST_F(QueryContextManagerTest, nativeSessionProperties) {
7980
EXPECT_TRUE(queryCtx->queryConfig().debugDisableExpressionsWithMemoization());
8081
EXPECT_TRUE(queryCtx->queryConfig().debugDisableExpressionsWithLazyInputs());
8182
EXPECT_TRUE(queryCtx->queryConfig().selectiveNimbleReaderEnabled());
82-
EXPECT_TRUE(queryCtx->queryConfig().rowSizeTrackingEnabled());
83+
EXPECT_EQ(
84+
queryCtx->queryConfig().rowSizeTrackingMode(),
85+
facebook::velox::core::QueryConfig::RowSizeTrackingMode::ENABLED_FOR_ALL);
8386
EXPECT_EQ(queryCtx->queryConfig().preferredOutputBatchBytes(), 10UL << 20);
8487
EXPECT_EQ(queryCtx->queryConfig().preferredOutputBatchRows(), 1024);
8588
EXPECT_EQ(queryCtx->queryConfig().spillWriteBufferSize(), 1024);

presto-native-execution/velox

Submodule velox updated 233 files

0 commit comments

Comments
 (0)