Skip to content

Commit

Permalink
chore: fixes for cubesql
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Oct 18, 2024
1 parent 3c40516 commit 379c9b1
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 57 deletions.
2 changes: 1 addition & 1 deletion rust/cubesql/cubesql/src/compile/rewrite/rules/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ impl MemberRules {
.find_cube_with_name(time_dimension_name.split(".").next().unwrap())
{
if let Some(time_dimension) = cube.dimensions.iter().find(|d| {
d._type == "time" && d.name.eq_ignore_ascii_case(&time_dimension_name)
d.r#type == "time" && d.name.eq_ignore_ascii_case(&time_dimension_name)
}) {
for granularity in
var_iter!(egraph[subst[granularity_var]], LiteralExprValue)
Expand Down
4 changes: 2 additions & 2 deletions rust/cubesql/cubesql/src/compile/rewrite/rules/old_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5065,8 +5065,8 @@ impl OldSplitRules {
meta.find_cube_by_column(&alias_to_cube, &column)
{
if let Some(dimension) = cube.lookup_dimension(&column.name) {
if is_time_dimension && dimension._type == "time"
|| !is_time_dimension && dimension._type != "time"
if is_time_dimension && dimension.r#type == "time"
|| !is_time_dimension && dimension.r#type != "time"

Check warning on line 5069 in rust/cubesql/cubesql/src/compile/rewrite/rules/old_split.rs

View check run for this annotation

Codecov / codecov/patch

rust/cubesql/cubesql/src/compile/rewrite/rules/old_split.rs#L5068-L5069

Added lines #L5068 - L5069 were not covered by tests
{
if let Some(expr_name) =
original_expr_name(egraph, subst[arg_expr_var])
Expand Down
Loading

0 comments on commit 379c9b1

Please sign in to comment.