I don't see moving the verification check here rather than doing in planning time helps. Since for each addition call we still increase the precision by 1, hence for 39 such additions precision will go beyond max allowed 38 and scale will become -1, hence throwing the error.
[ Full content available at: https://github.com/apache/drill/pull/1451 ] This message was relayed via gitbox.apache.org for [email protected]
