Skip to content

HIVE-29779: Revive some test cases in HiveIcebergRESTViewCatalogTests - #6660

Open
okumin wants to merge 1 commit into
apache:masterfrom
okumin:HIVE-29779-nightly-fail
Open

HIVE-29779: Revive some test cases in HiveIcebergRESTViewCatalogTests#6660
okumin wants to merge 1 commit into
apache:masterfrom
okumin:HIVE-29779-nightly-fail

Conversation

@okumin

@okumin okumin commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Re-enable four test cases related to view.

Why are the changes needed?

To avoid ad-hoc exclusions.

Does this PR introduce any user-facing change?

No

How was this patch tested?

  1. Build hive:test and hive:standalone-metastore-test images based on the latest master branch
  2. ./itests/test-docker/scripts/setup.sh
  3. mvn --batch-mode test -Pitests -Pdocker -pl itests/test-docker

<property>
<name>metastore.iceberg.catalog.unique.table.location</name>
<value>true</value>
</property>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A common practice for RCK is to disable createTableInUniqueLocation since RSK's client can't share the flag with a catalog server.
However, as our REST catalog can enable the feature at the catalog level, we don't need to skip the test case.
https://github.com/apache/iceberg/blob/c53434560298176454501b28d12895becfb80e10/open-api/src/test/java/org/apache/iceberg/rest/RESTCompatibilityKitCatalogTests.java#L112-L116


@Override
public void completeCreateView() {
// This test case requires https://github.com/apache/iceberg/pull/14653

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We needed to disable completeCreateView, createAndReplaceViewWithLocation, createViewWithCustomMetadataLocation, and updateViewLocation since they hardcoded local file paths, though itests/test-docker uses S3A. Now, it is pluggable, and we can run all tests.

@Disabled("https://github.com/apache/iceberg/pull/17420")
@Test
public void testLoadTableWithMissingMetadataFile(Path tempDir) throws IOException {
super.testLoadTableWithMissingMetadataFile(tempDir);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case assumes the warehouse location is a local filesystem. We can't run it here

@okumin
okumin marked this pull request as ready for review July 29, 2026 16:15
@okumin okumin changed the title HIVE-29779: Make itests/test-docker compatible with Iceberg 1.11.0 HIVE-29779: Fix itests/test-docker compatibility with Iceberg 1.11.0 Jul 29, 2026
@deniskuzZ

Copy link
Copy Markdown
Member

@okumin i think it duplicates HIVE-29764

@okumin okumin changed the title HIVE-29779: Fix itests/test-docker compatibility with Iceberg 1.11.0 HIVE-29779: Revive some test cases in HiveIcebergRESTViewCatalogTests Jul 30, 2026
@okumin
okumin force-pushed the HIVE-29779-nightly-fail branch from 656abf8 to 0aa5672 Compare July 30, 2026 00:48
@okumin

okumin commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@deniskuzZ @kokila-19 Thank you! Looks good to me. I updated the scope, and this PR has only view-related changes. I'd appreciate it if you could have a look. This is now nice to have, so take your time.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants