DRILL-4704: Fix incorrect query result when decimal is compared with int value
Make sure implicit cast function is provided with the correct precision value
for int/bigint input.
This version of the fix passes the unit test, but may increase the chance of
an overflow error, since the precision is not minimized, and thus it is more
likely to exceed that of the destination decimal. see DRILL-4834.
Close apache/drill#517