Skip to content

Commit 1cf91d4

Browse files
xx01cyxlanlou1554
authored andcommitted
add check for derived column in AttributeRefPred
1 parent 24e9f23 commit 1cf91d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

optd-cost-model/src/common/predicates/attr_ref_pred.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ impl AttributeRefPred {
3838
pub fn attr_index(&self) -> usize {
3939
self.0.child(1).data.as_ref().unwrap().as_u64() as usize
4040
}
41+
42+
/// Checks whether the attribute is a derived attribute. Currently, this will always return
43+
/// false, since derived attribute is not yet supported.
44+
pub fn is_derived(&self) -> bool {
45+
false
46+
}
4147
}
4248

4349
impl ReprPredicateNode for AttributeRefPred {

0 commit comments

Comments
 (0)