Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.38.0
Description
Currently, the RelRoot.project() method only generates a project relation if the RelRoot fields are:
- not ref trivial
- or if one of the following is not true:
- is not a DML operation
- is not a force project
- the existing top relation is not already a LogicalProject
The result is that for a simple SQL query that selects a single field from a table and renames the same field we are losing the renaming of the field if we call RelRoot.project() even if we set the force parameter to true since the relational tree embedded in the RelRoot already contains a LogicalProject at the top of the tree.
My expectation would be that when I call RelRoot.project() that a LogicalProject is being added also if the RelRoot fields are not name trivial aka they are being renamed.
Attachments
Issue Links
- links to