Balazs Hevele has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24190 )

Change subject: IMPALA-14882: part1: Convert arrow record batch to impala tuple 
batch
......................................................................


Patch Set 43:

(7 comments)

http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/benchmarks/arrow-converter-benchmark.cc
File be/src/benchmarks/arrow-converter-benchmark.cc:

http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/benchmarks/arrow-converter-benchmark.cc@48
PS42, Line 48: Mixed
> nit, ok to move to followup commit:
Ack


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc
File be/src/exec/arrow-converter.cc:

http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@163
PS42, Line 163:   Status CastArray(const ArrowArrayType** result) cons
> shouldn't we subtract start_row_idx here, like in line 116? (thx claude for
Done, good catch


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@270
PS42, Line 270:   void SetDecimalVal(const uint8_t* buffer,
> Can this come from corrupt data, or is a program error if this happens? In
This can technically come from corrupt data -,though it's not a realistic case 
with data coming from Paimon-, so keeping this as a Status.
On the other hand, the check in SetDecimalVal is a program error now, so 
changed that one to a DCHECK.


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@275
PS42, Line 275:   }
> Won't this allocate on each call - why no use a static const in class or co
Done


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@319
PS42, Line 319:
> nit: this can overflow for corrupt values, leading to potentially accepting
Done


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@426
PS42, Line 426:         writer->reset(
> What is the approach to varchar truncation? Can we assume that this is alre
Added the truncation to the conversion


http://gerrit.cloudera.org:8080/#/c/24190/42/be/src/exec/arrow-converter.cc@536
PS42, Line 536:
              : Status ArrowToTupleConverter::Convert(cons
> It would be nicer to avoid the per row batch * column allocation. I don't s
Good idea.
Made a class from it that keeps the SlotWriters between conversions. Paimon now 
uses it. Added test cases for it.



--
To view, visit http://gerrit.cloudera.org:8080/24190
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iea544b3c71d9211c893f0fec3527ebe84155ebcd
Gerrit-Change-Number: 24190
Gerrit-PatchSet: 43
Gerrit-Owner: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Xuebin Su <[email protected]>
Gerrit-Reviewer: ji chen <[email protected]>
Gerrit-Reviewer: jichen <[email protected]>
Gerrit-Comment-Date: Mon, 19 Oct 2026 10:23:45 +0000
Gerrit-HasComments: Yes

Reply via email to