Hello Arnab Karmakar, Csaba Ringhofer, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25459

to look at the new patch set (#6).

Change subject: IMPALA-15811: Support DECIMAL(p,s) as a variant_get() target 
type
......................................................................

IMPALA-15811: Support DECIMAL(p,s) as a variant_get() target type

The typed form of variant_get(v, path, type) and try_variant_get()
rejected decimal types during analysis, so the STRING type was the
only exact way to read a VARIANT decimal.

The type argument can now be 'decimal(p,s)', 'decimal(p)' or
'decimal', with the defaults of the DECIMAL column type. The frontend
parses the precision and scale and sets them in the return type of the
new variant_get_decimal() and try_variant_get_decimal() builtins.

Decimal, integer, floating-point and string values convert like
CAST(... AS DECIMAL(p,s)) with DECIMAL_V2: digits beyond the scale
round half away from zero, also if DECIMAL_V2 is false. A value that
does not fit the precision is an out-of-range error, or NULL for
try_variant_get().

The docs now also cover the decimal conversions of IMPALA-15611.

Testing:
- Added BE, FE and EE tests for the decimal types.
- Built plain-html docs without errors.

Change-Id: I07a1aab68238b4af8760f647848aaf07cc5d497d
Assisted-by: Claude Fable 5.2 (Claude Code)
---
M be/src/exprs/variant-functions-ir.cc
M be/src/exprs/variant-functions-test.cc
M be/src/exprs/variant-functions.h
M common/function-registry/impala_functions.py
M docs/topics/impala_variant.xml
M fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-v3-variant-get.test
8 files changed, 455 insertions(+), 26 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/59/25459/6
--
To view, visit https://gerrit.cloudera.org/25459
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I07a1aab68238b4af8760f647848aaf07cc5d497d
Gerrit-Change-Number: 25459
Gerrit-PatchSet: 6
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to