You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org> on 2022/12/21 14:59:36 UTC

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Noemi Pap-Takacs has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19387


Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................

IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format

Iceberg hardcodes URIs in metadata files. If the table was written
in a certain storage location and then moved to another file system,
the hardcoded URIs will still point to the old location instead of
the current one. Therefore Impala will be unable to read the table.

TestIcebergTable.test_avro_file_format and test_mixed_file_format
use Hive from Impala to write tables. If the tables are created in
a different file system than the one they will be read from, the tests
fail due to the invalid URIs.
Skipping these 2 tests if testing is not done on HDFS.

Testing:
 - Testing locally on HDFS minicluster
 - Triggered an Ozone build to verify that it is skipped on a different
   file system

Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
---
M tests/common/skip.py
M tests/query_test/test_iceberg.py
2 files changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/19387/2
-- 
To view, visit http://gerrit.cloudera.org:8080/19387
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org>.
Noemi Pap-Takacs has uploaded a new patch set (#3). ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................

IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format

Iceberg hardcodes URIs in metadata files. If the table was written
in a certain storage location and then moved to another file system,
the hardcoded URIs will still point to the old location instead of
the current one. Therefore Impala will be unable to read the table.

TestIcebergTable.test_avro_file_format and test_mixed_file_format
use Hive from Impala to write tables. If the tables are created in
a different file system than the one they will be read from, the tests
fail due to the invalid URIs.
Skipping these 2 tests if testing is not done on HDFS.

Testing:
 - Testing locally on HDFS minicluster
 - Triggered an Ozone build to verify that it is skipped on a different
   file system

Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
---
M testdata/datasets/functional/functional_schema_template.sql
M tests/common/skip.py
M tests/query_test/test_iceberg.py
3 files changed, 7 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/19387/3
-- 
To view, visit http://gerrit.cloudera.org:8080/19387
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 3
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org>.
Noemi Pap-Takacs has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> This patch is ok if we want to take longer to dig into this. However I thin
*Thank you for the suggestion, Michael! I tried it but unfortunately it does not seem to help.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 19:46:07 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 4:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12060/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 4
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 14:55:31 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> https://github.com/apache/impala/blob/master/testdata/bin/rewrite-iceberg-m
This patch is ok if we want to take longer to dig into this. However I think the main problem is that new tests are in /test-warehouse/functional_parquet.db rather than /test-warehouse/iceberg_test, so https://github.com/apache/impala/blob/4.2.0/testdata/bin/load-test-warehouse-snapshot.sh#L119 is insufficient. The only directories I see named metadata look to be iceberg tables, so I think removing /iceberg_test from that 'find' command would fix these tests.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 17:43:27 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
https://github.com/apache/impala/blob/master/testdata/bin/rewrite-iceberg-metadata.py updates metadata for new locations. Is it missing a field? Or some other reason this doesn't work?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 16:44:50 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org>.
Noemi Pap-Takacs has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> This patch is ok if we want to take longer to dig into this. However I thin
Thank you for the suggestion! I tried it but unfortunately it does not seem to help.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 19:36:06 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 5:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8930/ DRY_RUN=false


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 5
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 14:39:35 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 5: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 5
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 14:39:34 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org>.
Noemi Pap-Takacs has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................

IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format

Iceberg hardcodes URIs in metadata files. If the table was written
in a certain storage location and then moved to another file system,
the hardcoded URIs will still point to the old location instead of
the current one. Therefore Impala will be unable to read the table.

TestIcebergTable.test_avro_file_format and test_mixed_file_format
use Hive from Impala to write tables. If the tables are created in
a different file system than the one they will be read from, the tests
fail due to the invalid URIs.
Skipping these 2 tests if testing is not done on HDFS.

Updated the data load schema of the 2 test tables created by Hive and
set LOCATION to the same as in the previous test tables. If this
makes it possible to rewrite the URIs in the metadata and makes the
tables accessible from another file system as well later, then the
tests can be enabled again.

Testing:
 - Testing locally on HDFS minicluster
 - Triggered an Ozone build to verify that it is skipped on a different
   file system

Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
---
M testdata/datasets/functional/functional_schema_template.sql
M tests/common/skip.py
M tests/query_test/test_iceberg.py
3 files changed, 7 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/19387/4
-- 
To view, visit http://gerrit.cloudera.org:8080/19387
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 4
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Noemi Pap-Takacs (Code Review)" <ge...@cloudera.org>.
Noemi Pap-Takacs has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> The other thing we could try I think is creating a hadoop catalog
 > table:
 > 
 > 'iceberg.catalog'='hadoop.catalog',
 > 'iceberg.catalog_location'='/test-warehouse/iceberg_test/hadoop_catalog'

These table properties are interpreted only by Impala. When we create a table using Hive, we can give these properties, but Hive will still create the table to Hive Catalog and not to the location specified in the properties.
I tried this proposed solution: the table was created and is shown in the database, but I got a TableLoadingException saying that the table does not exist because the location does not match with the properties. If I add the same location as in the example above, I still get the TableLoadingException, if the properties are present. Even though the files will be created at the given location.

I suggest skipping these tests for now, and let us investigate this issue further in the future.
I added only the LOCATION property for now, and specified it to be the same as the 'iceberg.catalog_location' in the example above. Hopefully it will result in usable snapshots.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 3
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 13:28:12 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12054/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 15:19:42 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Tamas Mate (Code Review)" <ge...@cloudera.org>.
Tamas Mate has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> > The other thing we could try I think is creating a hadoop catalog
Thanks for checking it Noemi!

Could you add some information on the reason behind updating the data load as well in the commit message? Then we should be good to go.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 13:46:17 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................

IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format

Iceberg hardcodes URIs in metadata files. If the table was written
in a certain storage location and then moved to another file system,
the hardcoded URIs will still point to the old location instead of
the current one. Therefore Impala will be unable to read the table.

TestIcebergTable.test_avro_file_format and test_mixed_file_format
use Hive from Impala to write tables. If the tables are created in
a different file system than the one they will be read from, the tests
fail due to the invalid URIs.
Skipping these 2 tests if testing is not done on HDFS.

Updated the data load schema of the 2 test tables created by Hive and
set LOCATION to the same as in the previous test tables. If this
makes it possible to rewrite the URIs in the metadata and makes the
tables accessible from another file system as well later, then the
tests can be enabled again.

Testing:
 - Testing locally on HDFS minicluster
 - Triggered an Ozone build to verify that it is skipped on a different
   file system

Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Reviewed-on: http://gerrit.cloudera.org:8080/19387
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M testdata/datasets/functional/functional_schema_template.sql
M tests/common/skip.py
M tests/query_test/test_iceberg.py
3 files changed, 7 insertions(+), 3 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 6
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Tamas Mate (Code Review)" <ge...@cloudera.org>.
Tamas Mate has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19387/2//COMMIT_MSG@9
PS2, Line 9: Iceberg hardcodes URIs in metadata files. If the table was written
> This patch is ok if we want to take longer to dig into this. However I thin
The other thing we could try I think is creating a hadoop catalog table:

'iceberg.catalog'='hadoop.catalog',
'iceberg.catalog_location'='/test-warehouse/iceberg_test/hadoop_catalog'



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 2
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Wed, 21 Dec 2022 19:11:55 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 5: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 5
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 19:45:20 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 3:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12059/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 3
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 13:30:33 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11807: Fix TestIcebergTable.test avro file format and test mixed file format

Posted by "Tamas Mate (Code Review)" <ge...@cloudera.org>.
Tamas Mate has posted comments on this change. ( http://gerrit.cloudera.org:8080/19387 )

Change subject: IMPALA-11807: Fix TestIcebergTable.test_avro_file_format and test_mixed_file_format
......................................................................


Patch Set 4: Code-Review+2

Thank you for the fix Noemi, LGTM!


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f126de80c6e7f825d02f6814fcf69ae320a781
Gerrit-Change-Number: 19387
Gerrit-PatchSet: 4
Gerrit-Owner: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Tamas Mate <tm...@apache.org>
Gerrit-Comment-Date: Thu, 22 Dec 2022 14:39:20 +0000
Gerrit-HasComments: No