Daniel Becker has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/21269 )

Change subject: IMPALA-12973,IMPALA-11491,IMPALA-12651: Support BINARY nested 
in complex types in select list
......................................................................


Patch Set 7:

(2 comments)

Thanks for the review, Gábor!

http://gerrit.cloudera.org:8080/#/c/21269/7/be/src/exec/iceberg-metadata/iceberg-row-reader.cc
File be/src/exec/iceberg-metadata/iceberg-row-reader.cc:

http://gerrit.cloudera.org:8080/#/c/21269/7/be/src/exec/iceberg-metadata/iceberg-row-reader.cc@227
PS7, Line 227:   RETURN_IF_ERROR(GuardType::create(env, jbuffer, 
&jbuffer_guard));
> if create() returned an error here we'd leak memory because of 'jbuffer', r
No, the type of 'jbuffer' is jbyteArray or jstring, and they are local JNI 
object references which will be freed by the JVM. Only the buffer returned by 
env->GetByteArrayElements() or env->GetStringUTFChars() (called within 
create()) has to be freed manually, that's what 'jbuffer_guard' takes care of.


http://gerrit.cloudera.org:8080/#/c/21269/7/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test
File 
testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test:

http://gerrit.cloudera.org:8080/#/c/21269/7/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test@804
PS7, Line 804: select data_file from 
functional_parquet.iceberg_query_metadata.entries;
> The query should go into the QUERY section
Thanks for catching it.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7b1d7fa332a901f05a46e0199e13fb841d2687c2
Gerrit-Change-Number: 21269
Gerrit-PatchSet: 7
Gerrit-Owner: Daniel Becker <daniel.bec...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <daniel.bec...@cloudera.com>
Gerrit-Reviewer: Gabor Kaszab <gaborkas...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <npaptak...@cloudera.com>
Gerrit-Comment-Date: Mon, 22 Apr 2024 14:26:29 +0000
Gerrit-HasComments: Yes

Reply via email to