Skip to content

Commit 6aafb02

Browse files
committed
refactor a bit
1 parent 110a5a4 commit 6aafb02

File tree

1 file changed

+6
-1
lines changed
  • rust/cubesql/cubesql/src/compile/rewrite/rules

1 file changed

+6
-1
lines changed

rust/cubesql/cubesql/src/compile/rewrite/rules/members.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,12 @@ impl MemberRules {
15241524
// we should allow transform only for queries with dimensions only,
15251525
// as it doesn't make sense for measures
15261526
meta_context
1527-
.find_measure_with_name(member.name().unwrap().to_string())
1527+
.find_measure_with_name(
1528+
member
1529+
.name()
1530+
.expect("Measure should have a name")
1531+
.to_string(),
1532+
)
15281533
.is_some()
15291534
})
15301535
})

0 commit comments

Comments
 (0)