Skip to content

Commit

Permalink
Add spill related session property for native engine
Browse files Browse the repository at this point in the history
  • Loading branch information
kewang1024 committed Feb 3, 2024
1 parent 1c14dff commit efd604a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public final class SystemSessionProperties
public static final String NATIVE_WRITER_SPILL_ENABLED = "native_writer_spill_enabled";
public static final String NATIVE_ROW_NUMBER_SPILL_ENABLED = "native_row_number_spill_enabled";
public static final String NATIVE_TOPN_ROW_NUMBER_SPILL_ENABLED = "native_topn_row_number_spill_enabled";
public static final String NATIVE_JOIN_SPILLER_PARTITION_BITS = "native_join_spiller_partition_bits";
public static final String NATIVE_EXECUTION_ENABLED = "native_execution_enabled";
public static final String NATIVE_EXECUTION_EXECUTABLE_PATH = "native_execution_executable_path";
public static final String NATIVE_EXECUTION_PROGRAM_ARGUMENTS = "native_execution_program_arguments";
Expand Down Expand Up @@ -1635,6 +1636,12 @@ public SystemSessionProperties(
"Native Execution only. Enable topN row number spilling on native engine",
false,
false),
integerProperty(
NATIVE_JOIN_SPILLER_PARTITION_BITS,
"Native Execution only. The number of bits (N) used to calculate the " +
"spilling partition number for hash join and RowNumber: 2 ^ N",
2,
false),
booleanProperty(
NATIVE_EXECUTION_ENABLED,
"Enable execution on native engine",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ std::string toVeloxConfig(const std::string& name) {
{"native_writer_spill_enabled", QueryConfig::kWriterSpillEnabled},
{"native_row_number_spill_enabled",
QueryConfig::kRowNumberSpillEnabled},
{"native_join_spiller_partition_bits",
QueryConfig::kJoinSpillPartitionBits},
{"native_topn_row_number_spill_enabled",
QueryConfig::kTopNRowNumberSpillEnabled},
{"native_debug_validate_output_from_operators",
Expand Down

0 comments on commit efd604a

Please sign in to comment.