Create a metafilter without the projection. The projection will be added later when the demand is computed.
(pred dag.Expr)
| 152 | // Create a metafilter without the projection. The projection will be |
| 153 | // added later when the demand is computed. |
| 154 | func newMetaFilter(pred dag.Expr) *dag.ScanFilter { |
| 155 | e := newMetadataPruner(pred) |
| 156 | if e == nil { |
| 157 | return nil |
| 158 | } |
| 159 | return &dag.ScanFilter{Expr: e} |
| 160 | } |
| 161 | |
| 162 | func newMetadataPruner(pred dag.Expr) dag.Expr { |
| 163 | switch e := pred.(type) { |
no test coverage detected