impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ho (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4809: Codegen support for DECIMAL V2
Date Thu, 09 Feb 2017 03:24:21 GMT
Michael Ho has uploaded a new change for review.

Change subject: IMPALA-4809: Codegen support for DECIMAL_V2

IMPALA-4809: Codegen support for DECIMAL_V2

Currently, codegen supports converting type attributes (e.g.
decimal type's precision and scale, type's size) obtained via
calls to FunctionContextImpl::GetFnAttr() (previously
Expr::GetConstantInt()) in cross-compiled code to runtime constants.
This change extends this support for the query option DECIMAL_V2.
To test this change, the casting between decimal values is also
updated to support rounding (instead of truncation) when decimal_v2
is true.

This change also cleans up the existing code by moving the codegen
logic Expr::InlineConstant() to the codegen module and the type
related logic in Expr::GetConstantInt() to FunctionContextImpl.

Change-Id: I2434d240f65b81389b8a8ba027f980a0e1d1f981
M be/src/benchmarks/
M be/src/codegen/
M be/src/codegen/
M be/src/codegen/llvm-codegen.h
M be/src/exec/
M be/src/exec/partitioned-aggregation-node.h
M be/src/exprs/agg-fn-evaluator.h
M be/src/exprs/
M be/src/exprs/
M be/src/exprs/
M be/src/exprs/
M be/src/exprs/decimal-operators.h
M be/src/exprs/
M be/src/exprs/
M be/src/exprs/
M be/src/exprs/expr.h
M be/src/exprs/
M be/src/exprs/
M be/src/runtime/decimal-value.inline.h
M be/src/runtime/
M be/src/runtime/
M be/src/runtime/runtime-state.h
M be/src/service/
M be/src/udf/udf-internal.h
M be/src/udf/
M be/src/udf/udf-test-harness.h
M be/src/udf/
M testdata/workloads/functional-query/queries/QueryTest/decimal.test
28 files changed, 618 insertions(+), 459 deletions(-)

  git pull ssh:// refs/changes/50/5950/1
To view, visit
To unsubscribe, visit

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2434d240f65b81389b8a8ba027f980a0e1d1f981
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Michael Ho <>

View raw message