Hello ji chen, Xuebin Su, Impala Public Jenkins,

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

    https://gerrit.cloudera.org/25420

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

Change subject: IMPALA-14882: Arrow Converter: expect arrow decimal type for 
impala decimal
......................................................................

IMPALA-14882: Arrow Converter: expect arrow decimal type for impala decimal

Changed Arrow Converter to accept arrow decimals instead of arrow
binaries to convert to impala decimals.

Previously, converting to an impala decimal required an arrow binary,
as decimals were encoded into arrow binary arrays from paimon data.

After the change, converting to an impala decimal requires an arrow
decimal.
Removed the overrides for paimon that converted the values to binaries
in arrow. By keeping the default, paimon now provides arrays of
decimal128's, which pass the converter.

The scale of the arrow type and impala type has to be the same, and the
arrow type's precision has to be at most the impala type's precision for
the conversion to pass. Otherwise, it returns an error.

Testing:
-rewrote arrow-converter-test.cc to test passing and failing cases
-added new decimal-related tests to paimon-query.test
-paimon tests passed

Change-Id: Ibe2c5d2067b8e20ada95ced54f859218558aa07d
Assisted-by: Claude Opus 5.5 (GitHub Copilot)
---
M be/src/exec/arrow-converter-test.cc
M be/src/exec/arrow-converter.cc
D 
fe/src/main/java/org/apache/impala/util/paimon/PaimonArrowFieldTypeFactory.java
D 
fe/src/main/java/org/apache/impala/util/paimon/PaimonArrowFieldWriterFactory.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonArrowFormatWriter.java
M testdata/workloads/functional-query/queries/QueryTest/paimon-query.test
6 files changed, 164 insertions(+), 192 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/20/25420/5
--
To view, visit https://gerrit.cloudera.org/25420
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibe2c5d2067b8e20ada95ced54f859218558aa07d
Gerrit-Change-Number: 25420
Gerrit-PatchSet: 5
Gerrit-Owner: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Xuebin Su <[email protected]>
Gerrit-Reviewer: ji chen <[email protected]>

Reply via email to