Skip to content

Commit

Permalink
chore: add feature is_sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 3, 2024
1 parent 55f8250 commit 3c7f300
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/catalog/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
#![feature(coroutine_trait)]
#![feature(iterator_try_collect)]
#![feature(slice_pattern)]
#![feature(is_sorted)]
#![feature(stmt_expr_attributes)]
extern crate core;

Expand Down
6 changes: 4 additions & 2 deletions tests/macros-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 3c7f300

Please sign in to comment.