Integer arithmetic on Impala
I noticed that on Apache Impala (version 3.4.0), 32767 + 0 returns an integer, whereas 32768 + 0 returns a bigint. I’m curious to know if this is expected (i.e. not a bug in my version of Impala), and if so, what is the reason?