diff --git a/data_types/src/columns.rs b/data_types/src/columns.rs index c713da0e26..0d993c5d1e 100644 --- a/data_types/src/columns.rs +++ b/data_types/src/columns.rs @@ -110,6 +110,15 @@ impl ColumnsByName { } } +impl IntoIterator for ColumnsByName { + type Item = (String, ColumnSchema); + type IntoIter = std::collections::btree_map::IntoIter; + + fn into_iter(self) -> Self::IntoIter { + self.0.into_iter() + } +} + // ColumnsByName is a newtype so that we can implement this `TryFrom` in this crate impl TryFrom for Schema { type Error = schema::builder::Error;