Skip to content

Commit a39c804

Browse files
committed
Improved QueryOptFlags class [skip ci]
1 parent 4b948b5 commit a39c804

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

lib/polars/query_opt_flags.rb

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,46 @@ module Polars
55
# This functionality is considered **unstable**. It may be changed
66
# at any point without it being considered a breaking change.
77
class QueryOptFlags
8-
def initialize
8+
def initialize(
9+
predicate_pushdown: nil,
10+
projection_pushdown: nil,
11+
simplify_expression: nil,
12+
slice_pushdown: nil,
13+
comm_subplan_elim: nil,
14+
comm_subexpr_elim: nil,
15+
cluster_with_columns: nil,
16+
collapse_joins: nil,
17+
check_order_observe: nil,
18+
fast_projection: nil
19+
)
920
@_rboptflags = RbOptFlags.default
21+
update(
22+
predicate_pushdown: predicate_pushdown,
23+
projection_pushdown: projection_pushdown,
24+
simplify_expression: simplify_expression,
25+
slice_pushdown: slice_pushdown,
26+
comm_subplan_elim: comm_subplan_elim,
27+
comm_subexpr_elim: comm_subexpr_elim,
28+
cluster_with_columns: cluster_with_columns,
29+
collapse_joins: collapse_joins,
30+
check_order_observe: check_order_observe,
31+
fast_projection: fast_projection
32+
)
33+
end
34+
35+
def update(
36+
predicate_pushdown: nil,
37+
projection_pushdown: nil,
38+
simplify_expression: nil,
39+
slice_pushdown: nil,
40+
comm_subplan_elim: nil,
41+
comm_subexpr_elim: nil,
42+
cluster_with_columns: nil,
43+
collapse_joins: nil,
44+
check_order_observe: nil,
45+
fast_projection: nil
46+
)
47+
raise Todo
1048
end
1149
end
1250
end

0 commit comments

Comments
 (0)