mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
Implicit casting to decimals allows truncating digits from the left of the decimal point (see TypesUtil). A literal that is implicitly cast to a decimal with truncation is wrapped into a CastExpr so the BE can evaluate it and report a warning. This behavior is consistent with casting/overflow of non-constant exprs that return decimal. IMPALA-1837: Without the CastExpr wrapping, such literals can exceed the max expected byte size sent to the BE in toThrift(). Change-Id: Icd7b8751b39b8031832eec04bd8eac7d7000ddf8 Reviewed-on: http://gerrit.cloudera.org:8080/195 Reviewed-by: Marcel Kornacker <marcel@cloudera.com> Tested-by: Internal Jenkins
8.0 KiB
8.0 KiB