Skip to content

Commit fb25086

Browse files
committed
chore(cubesql): Add TODOs about cube.contains_member(&cube.member_name(...))
1 parent 84a8e6e commit fb25086

File tree

1 file changed

+2
-0
lines changed
  • rust/cubesql/cubesql/src/transport

1 file changed

+2
-0
lines changed

rust/cubesql/cubesql/src/transport/ctx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl MetaContext {
104104
} else {
105105
alias_to_cube.iter().find(|(_, c)| {
106106
if let Some(cube) = self.find_cube_with_name(c) {
107+
// TODO replace cube.contains_member(&cube.member_name(...)) with searching by prepared column names
107108
cube.contains_member(&cube.member_name(&column.name))
108109
} else {
109110
false
@@ -135,6 +136,7 @@ impl MetaContext {
135136
.iter()
136137
.filter_map(|((old, new), c)| {
137138
if let Some(cube) = self.find_cube_with_name(c) {
139+
// TODO replace cube.contains_member(&cube.member_name(...)) with searching by prepared column names
138140
if cube.contains_member(&cube.member_name(&column.name)) {
139141
return Some(((old.as_str(), new.as_str()), cube));
140142
}

0 commit comments

Comments
 (0)