Skip to content

Commit befbdd1

Browse files
committed
Add hive session property to disable stats based filter reordering
1 parent 0927c8f commit befbdd1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

presto-hive/src/main/java/com/facebook/presto/hive/HiveSessionProperties.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public final class HiveSessionProperties
134134
public static final String SKIP_EMPTY_FILES = "skip_empty_files";
135135
public static final String LEGACY_TIMESTAMP_BUCKETING = "legacy_timestamp_bucketing";
136136

137+
public static final String STATS_BASED_FILTER_REORDER_DISABLED = "stats_based_filter_reorder_disabled";
138+
137139
private final List<PropertyMetadata<?>> sessionProperties;
138140

139141
@Inject
@@ -647,7 +649,12 @@ public HiveSessionProperties(HiveClientConfig hiveClientConfig, OrcFileWriterCon
647649
LEGACY_TIMESTAMP_BUCKETING,
648650
"Use legacy timestamp bucketing algorithm (which is not Hive compatible) for table bucketed by timestamp type.",
649651
hiveClientConfig.isLegacyTimestampBucketing(),
650-
false));
652+
false),
653+
booleanProperty(
654+
STATS_BASED_FILTER_REORDER_DISABLED,
655+
"Native Execution only. Disable stats based filter reordering.",
656+
false,
657+
true));
651658
}
652659

653660
public List<PropertyMetadata<?>> getSessionProperties()

0 commit comments

Comments
 (0)