(
&self,
projection: &ProjectionExprs,
)
| 272 | } |
| 273 | |
| 274 | fn try_pushdown_projection( |
| 275 | &self, |
| 276 | projection: &ProjectionExprs, |
| 277 | ) -> Result<Option<Arc<dyn FileSource>>> { |
| 278 | let mut source = self.clone(); |
| 279 | let new_projection = self.projection.source.try_merge(projection)?; |
| 280 | let split_projection = |
| 281 | SplitProjection::new(self.table_schema.file_schema(), &new_projection); |
| 282 | source.projection = split_projection; |
| 283 | Ok(Some(Arc::new(source))) |
| 284 | } |
| 285 | |
| 286 | fn projection(&self) -> Option<&ProjectionExprs> { |
| 287 | Some(&self.projection.source) |
nothing calls this directly
no test coverage detected