We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4af603 commit 0d589baCopy full SHA for 0d589ba
datafusion/core/src/physical_plan/projection.rs
@@ -212,7 +212,7 @@ fn get_field_metadata(
212
input_schema
213
.field_with_name(name)
214
.ok()
215
- .and_then(|f| f.metadata().as_ref().cloned())
+ .and_then(|f| f.metadata().cloned())
216
}
217
218
fn stats_projection(
datafusion/core/src/physical_plan/sorts/sort.rs
@@ -1143,7 +1143,7 @@ mod tests {
1143
// explicitlty ensure the metadata is present
1144
assert_eq!(
1145
result[0].schema().fields()[0].metadata(),
1146
- &Some(field_metadata)
+ Some(&field_metadata)
1147
);
1148
assert_eq!(result[0].schema().metadata(), &schema_metadata);
1149
0 commit comments