I have a field wth the type- SMALLINT(5) in my table in mysql database.
When i try to do a aggregate operation (sum()) on the field using projections, I get the following exception
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLDataException:
'8.0042892E7' in column '1' is outside valid range for the datatype SMALLINT.
I understood it as "aggregate operations results are returned in the same datatype in which it is stored". iS my assumption correct.
If so,Is it possible for me to cast the return value to a long value or a String