Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion rust/cubesql/cubesql/src/compile/rewrite/rules/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use egg::Subst;

use crate::{
compile::{
datafusion::logical_plan::Column,
datafusion::logical_plan::{Column, Expr},
rewrite::{
analysis::OriginalExpr,
column_expr, column_name_to_member_vec,
Expand Down Expand Up @@ -370,6 +370,13 @@ impl OrderRules {
continue;
};

// TODO: workaround the issue with `generate_sql_for_push_to_cube`
// accepting only columns and erroring on more complex expressions.
// Remove this when `generate_sql_for_push_to_cube` is fixed.
if !matches!(expr, Expr::Column(_)) {
continue;
}

let Ok(new_expr_id) =
LogicalPlanToLanguageConverter::add_expr(egraph, expr, flat_list)
else {
Expand Down
Loading