diff --git a/src/catalog/column.rs b/src/catalog/column.rs index b832e891..5bf8fced 100644 --- a/src/catalog/column.rs +++ b/src/catalog/column.rs @@ -113,7 +113,7 @@ impl ColumnCatalog { &self.summary } - pub(crate) fn summary_mut(&mut self) -> &mut ColumnSummary { + pub fn summary_mut(&mut self) -> &mut ColumnSummary { &mut self.summary } diff --git a/src/lib.rs b/src/lib.rs index dc316679..f0d320c8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,6 +92,7 @@ #![feature(coroutine_trait)] #![feature(iterator_try_collect)] #![feature(slice_pattern)] +#![feature(is_sorted)] #![feature(stmt_expr_attributes)] extern crate core; diff --git a/tests/macros-test/src/main.rs b/tests/macros-test/src/main.rs index 4cf05949..05743dd2 100644 --- a/tests/macros-test/src/main.rs +++ b/tests/macros-test/src/main.rs @@ -178,18 +178,20 @@ mod test { true, ColumnDesc::new(LogicalType::Integer, false, false, None)?, ); - c1.summary.relation = ColumnRelation::Table { + c1.summary_mut().relation = ColumnRelation::Table { column_id: function_schema[0].id().unwrap(), table_name: table_name.clone(), + is_temp: false, }; let mut c2 = ColumnCatalog::new( "c2".to_string(), true, ColumnDesc::new(LogicalType::Integer, false, false, None)?, ); - c2.summary.relation = ColumnRelation::Table { + c2.summary_mut().relation = ColumnRelation::Table { column_id: function_schema[1].id().unwrap(), table_name: table_name.clone(), + is_temp: false, }; assert_eq!(