Skip to content

Commit e730925

Browse files
committed
add get_attribute_info interface to MemoExt
1 parent 28d2aea commit e730925

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

optd-cost-model/src/memo_ext.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
use crate::common::{
2-
properties::{attr_ref::GroupAttrRefs, schema::Schema},
2+
properties::{attr_ref::GroupAttrRefs, schema::Schema, Attribute},
33
types::GroupId,
44
};
55

66
pub trait MemoExt {
7-
fn get_schema_of(&self, group_id: GroupId) -> Schema;
8-
fn get_column_ref_of(&self, group_id: GroupId) -> GroupAttrRefs;
7+
fn get_schema(&self, group_id: GroupId) -> Schema;
8+
fn get_column_ref(&self, group_id: GroupId) -> GroupAttrRefs;
9+
fn get_attribute_info(&self, group_id: GroupId, attr_ref_idx: u64) -> Attribute;
910
}

0 commit comments

Comments
 (0)