Given a query, it builds another query with more data.
Returns whether the tree contains any projection nodes.
Returns whether the tree contains any projection nodes.
whether the tree contains projection nodes
Transforms the tree from the outermost node to the innermost until a single node is transformed, then stops.
Transforms the tree from the outermost node to the innermost until a single node is transformed, then stops.
transform function
transformed node, if any.
Makes the tree fit a certain schema by changing the projected columns or adding a new Project node if there is no projection.
Makes the tree fit a certain schema by changing the projected columns or adding a new Project node if there is no projection.
fields to project
new node adapted to the given schema
Node of a query.