Skip to content

Commit 73e0aaa

Browse files
committed
just return
1 parent de3f3a3 commit 73e0aaa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datafusion/datasource/src/memory.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl DataSource for MemorySourceConfig {
217217
) -> Result<Option<Arc<dyn DataSource>>> {
218218
// If there is any non-column or alias-carrier expression, Projection should not be removed.
219219
// This process can be moved into MemoryExec, but it would be an overlap of their responsibility.
220-
let res = all_alias_free_columns(projection)
220+
all_alias_free_columns(projection)
221221
.then(|| {
222222
let all_projections = (0..self.schema.fields().len()).collect();
223223
let new_projections = new_projections_for_columns(
@@ -232,9 +232,7 @@ impl DataSource for MemorySourceConfig {
232232
)
233233
.map(|s| Arc::new(s) as Arc<dyn DataSource>)
234234
})
235-
.transpose()?;
236-
237-
Ok(res)
235+
.transpose()
238236
}
239237
}
240238

0 commit comments

Comments
 (0)