1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#[derive(Copy, Clone)]
pub struct OptState {
pub projection_pushdown: bool,
pub predicate_pushdown: bool,
pub type_coercion: bool,
pub simplify_expr: bool,
pub file_caching: bool,
pub slice_pushdown: bool,
#[cfg(feature = "cse")]
pub common_subplan_elimination: bool,
pub streaming: bool,
}
impl Default for OptState {
fn default() -> Self {
OptState {
projection_pushdown: true,
predicate_pushdown: true,
type_coercion: true,
simplify_expr: true,
slice_pushdown: true,
file_caching: false,
#[cfg(feature = "cse")]
common_subplan_elimination: true,
streaming: false,
}
}
}
pub type AllowedOptimizations = OptState;