Skip to content

Commit

Permalink
fix(rust): merge ProjectionOptions for partial cwc
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed May 21, 2024
1 parent 24d8b76 commit 0be0d6f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ pub fn optimize(root: Node, lp_arena: &mut Arena<IR>, expr_arena: &Arena<AExpr>)

*current_wc.exprs.exprs_mut() = current_exprs;

let options = current_wc.options.merge_options(input_wc.options);
*current_wc.options = options;
*input_wc.options = options;

// @NOTE: Here we add a simple projection to make sure that the output still
// has the right schema.
if needs_simple_projection {
Expand Down

0 comments on commit 0be0d6f

Please sign in to comment.