pub fn materialize_view( view_def: &ViewDef, tables: &HashMap<String, (Schema, Vec<Row>)>, ) -> Result<(Schema, Vec<Row>)>