rongrong commented on PR #4130:
URL: https://github.com/apache/calcite/pull/4130#issuecomment-3002178067

   I need to sign up for an account to create an issue. That's a lot of effort 
to be able to file a bug...  Generally speaking, if your goal is to make sure 
in SELECT the name would be preserved after adding CAST to an identifier, you 
should handle that in SELECT. Adding it to type coercion can cause a lot of 
issues, this is just one way of breaking it. Theoretically you can have 
situations where `a + b` is rewritten to `CAST(a AS xxx) as a + b`, which, is 
also invalid SQL. 


-- 
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