Closed SolalPirelli closed 8 years ago
This is a minor oversight on our side: there should only be one Schema
parameter to the relationProject
function: the final schema. Currently, we pass the final schema twice.
So the code in RecordsLowering
that uses the first Schema
parameter behaves correctly, and is in fact doing a rightful projection (you can verify this by running pgrmA
).
In
RelationLowering
,relationProject
is called with the same argument for the old and new schema; was the 3rd argument here meant to beschema1
?Also, in
RecordsLowering
, it appears the code is completely ignoring the new schema and simply copying every tuple, which seems to defeat the purpose of a projection...?