Skip to content

Commit b32535a

Browse files
committed
Add session property to turn on
1 parent 0927c8f commit b32535a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

+9-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,13 @@ 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
658+
));
651659
}
652660

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

0 commit comments

Comments
 (0)