returnString commented on pull request #9596:
URL: https://github.com/apache/arrow/pull/9596#issuecomment-801967204


   I wouldn't expect most operations on numeric types to result in changes, 
other than division (ever the awkward one). Imo the user should opt into this 
kind of behaviour by casting at least one of the inputs to the desired result 
type.
   
   For simple queries, it's not too bad, but if I were doing calculations in 
sql and then say writing back to another table, I would expect my u8 + u8 
operations to yield more uint8s, not automatically convert to u16s. If I wanted 
that behaviour, I'd first promote one of those u8s to a u16 via casting.
   
   I also think that if people are explicitly selecting the smaller sizes of 
[u]ints, they're aware of the constraints and probably have a valid 
domain/resource reason for not using something larger.


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

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


Reply via email to