rubenada commented on PR #4207:
URL: https://github.com/apache/calcite/pull/4207#issuecomment-2674834598

   Yes... Calcite usually is quite smart to simplify these type of things 
transparently on the fly, so you'd probably need to "force" a bit the 
situation...
   What about a RelBuilder scenario with a Scan + Project (trim fields) + 
Filter + Project (rename); and then applying FilterProjectTranspose and then 
ProjectRemoveRule? I mean something like:
   ```
   Project(x as a, y as b)
     Filter(x>0)
       Project(x, y)
         Scan (TableA, fields x, y, x)
   
   => FilterProjectTranspose
   
   Project(x as a, y as b)
     Project(x, y)
       Filter(x>0)
         Scan (TableA, fields x, y, x)
   
   => ProjectRemoveRule! (scenario reproduced?)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to