Skip to content

Commit

Permalink
Merge branch 'prestodb:master' into okie-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariamalmesfer authored Dec 5, 2024
2 parents 8a7ba35 + 4c44dcf commit ec57bd1
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 6 deletions.
4 changes: 4 additions & 0 deletions presto-benchto-benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down
12 changes: 11 additions & 1 deletion presto-docs/src/main/sphinx/presto_cpp/properties-session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,14 @@ Use ``0`` to disable prefix-sort.
* **Default value:** ``130``

Minimum number of rows to use prefix-sort.
The default value has been derived using micro-benchmarking.
The default value has been derived using micro-benchmarking.

``native_op_trace_directory_create_config``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* **Type:** ``varchar``
* **Default value:** ``""``

Native Execution only. Config used to create operator trace directory. This config is provided
to underlying file system and the config is free form. The form should be defined by the
underlying file system.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class NativeWorkerSessionPropertyProvider
public static final String NATIVE_SPILL_PREFIXSORT_ENABLED = "native_spill_prefixsort_enabled";
public static final String NATIVE_PREFIXSORT_NORMALIZED_KEY_MAX_BYTES = "native_prefixsort_normalized_key_max_bytes";
public static final String NATIVE_PREFIXSORT_MIN_ROWS = "native_prefixsort_min_rows";
public static final String NATIVE_OP_TRACE_DIR_CREATE_CONFIG = "native_op_trace_directory_create_config";
private final List<PropertyMetadata<?>> sessionProperties;

@Inject
Expand Down Expand Up @@ -130,7 +131,7 @@ public NativeWorkerSessionPropertyProvider(FeaturesConfig featuresConfig)
longProperty(
NATIVE_WRITER_FLUSH_THRESHOLD_BYTES,
"Native Execution only. Minimum memory footprint size required to reclaim memory from a file " +
"writer by flushing its buffered data to disk.",
"writer by flushing its buffered data to disk.",
96L << 20,
false),
booleanProperty(
Expand Down Expand Up @@ -226,6 +227,10 @@ public NativeWorkerSessionPropertyProvider(FeaturesConfig featuresConfig)
"The regexp of traced task id. We only enable trace on a task if its id matches.",
"",
!nativeExecution),
stringProperty(NATIVE_OP_TRACE_DIR_CREATE_CONFIG,
"Config used to create operator trace directory. This config is provided to underlying file system and the config is free form. The form should be defined by the underlying file system.",
"",
!nativeExecution),
longProperty(NATIVE_MAX_OUTPUT_BUFFER_SIZE,
"The maximum size in bytes for the task's buffered output. The buffer is shared among all drivers.",
200L << 20,
Expand Down
10 changes: 10 additions & 0 deletions presto-native-execution/presto_cpp/main/SessionProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,16 @@ SessionProperties::SessionProperties() {
QueryConfig::kQueryTraceTaskRegExp,
c.queryTraceTaskRegExp());

addSessionProperty(
kOpTraceDirectoryCreateConfig,
"Config used to create operator trace directory. This config is provided to"
" underlying file system and the config is free form. The form should be defined "
"by the underlying file system.",
VARCHAR(),
false,
QueryConfig::kOpTraceDirectoryCreateConfig,
c.opTraceDirectoryCreateConfig());

addSessionProperty(
kMaxOutputBufferSize,
"The maximum size in bytes for the task's buffered output. The buffer is"
Expand Down
6 changes: 6 additions & 0 deletions presto-native-execution/presto_cpp/main/SessionProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ class SessionProperties {
static constexpr const char* kQueryTraceTaskRegExp =
"native_query_trace_task_reg_exp";

/// Config used to create operator trace directory. This config is provided to
/// underlying file system and the config is free form. The form should be
/// defined by the underlying file system.
static constexpr const char* kOpTraceDirectoryCreateConfig =
"native_op_trace_directory_create_config";

/// The maximum size in bytes for the task's buffered output. The buffer is
/// shared among all drivers.
static constexpr const char* kMaxOutputBufferSize =
Expand Down
8 changes: 4 additions & 4 deletions presto-pinot-toolkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</exclusion>
<exclusion>
<groupId>org.webjars</groupId>
<artifactId>swagger-ui</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down Expand Up @@ -314,10 +318,6 @@
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</exclusion>
<exclusion>
<groupId>org.webjars</groupId>
<artifactId>swagger-ui</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down

0 comments on commit ec57bd1

Please sign in to comment.