CALCITE-1128 we added support for PreparedStatement.executeBatch. This added ExecuteBatchResult with a field int updateCounts.
I think that field should have been long instead. Elsewhere we have been converting update counts from int to long, in line with changes to the JDBC API.
If changing this field from int to long will be a breaking change we should consider halting 1.8 to get this in.