Skip to content

Commit bc8da26

Browse files
committed
ARROW-5946: [Rust] [DataFusion] Fix bug in projection push down logic
There was a dumb bug when deriving the projected schema. The following code was used: ``` for i in in 0..projection.len() ``` This should have been ``` for i in in 0..&projection ``` This PR modifies the `TableScan` variant of `LogicalPlan` to store both the underlying table schema, and the projected schema. I added a unit test to demonstrate that the bug is now fixed. Author: Andy Grove <[email protected]> Closes apache#4878 from andygrove/ARROW-5946 and squashes the following commits: 8ac74c81d <Andy Grove> remove println a992c1703 <Andy Grove> Fix bug in projection push down
1 parent d10f00f commit bc8da26