magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

add CATALOG_TYPE_FEDERATED support to google_biglake_iceberg_catalog

Open fuzmish opened this issue 5 months ago • 2 comments

Add support for CATALOG_TYPE_FEDERATED in google_biglake_iceberg_catalog to configure Cross-Cloud Lakehouse.

Changes

  • mmv1/products/biglakeiceberg/IcebergCatalog.yaml
  • mmv1/templates/terraform/custom_update/biglake_iceberg_catalog_update.go.tmpl
    • Modify update logics to support the new fields.
    • Since the API refuses federated_catalog_options as a single update mask field, we need to enumerate allowed sub-field paths such as refresh_options.
  • mmv1/templates/terraform/samples/services/biglakeiceberg/*
    • Add the examples for both glue and unity catalog.

Testing

  • glue_catalog_info: Manually verified with our GCP project and AWS glue catalog based on the scenario described on the official guide.
  • unity_catalog_info: Not tested. We have no databricks account.😢
biglakeiceberg: add support for `CATALOG_TYPE_FEDERATED` with `federated_catalog_options` for Cross-Cloud Lakehouse

fuzmish avatar Jun 20 '26 18:06 fuzmish

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

github-actions[bot] avatar Jun 20 '26 18:06 github-actions[bot]

@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 25 '26 10:06 github-actions[bot]

Hello @slevenick, Is there anything we can do to help merge this? We hope this feature will be available asap on the provider 🤗

fuzmish avatar Jun 29 '26 05:06 fuzmish

@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 29 '26 11:06 github-actions[bot]

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 092f1456fb54d461349094603b0ee5e0b2162bcd:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 4 files changed, 1098 insertions(+), 3 deletions(-)
google-beta provider View Diff 4 files changed, 1098 insertions(+), 3 deletions(-)
terraform-google-conversion View Diff 1 file changed, 339 insertions(+)

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_biglake_iceberg_catalog (33 total tests) Please add an acceptance test which includes these fields. The test should include the following:

resource "google_biglake_iceberg_catalog" "primary" {
  description = # value needed
  federated_catalog_options {
    refresh_options {
      refresh_scope {
        namespace_filters = # value needed
      }
    }
    secret_name            = # value needed
    service_directory_name = # value needed
    unity_catalog_info {
      service_principal_application_id = # value needed
    }
  }
}


Test report

Analytics

Total Tests Passed Skipped Affected
23 16 1 6
Affected Service Packages
  • biglakeiceberg

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogBiglakeExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedGlueExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogPrimaryLocationExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalog_update

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogBiglakeExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedGlueExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogPrimaryLocationExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalog_update

[!CAUTION] Issues requiring attention before PR completion

🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details.

Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer.

View the recording VCR build log or the debug logs folder for detailed results.

@fuzmish, @wj-chen VCR tests complete for 092f1456fb54d461349094603b0ee5e0b2162bcd!

modular-magician avatar Jun 30 '26 23:06 modular-magician

@slevenick Thank you for your review! I have applied the fix based on your review on 6615a59 Please check out it.

fuzmish avatar Jul 01 '26 08:07 fuzmish

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 6615a590b278cac04ddbbdf7eb9fd5487bafaa25:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 4 files changed, 1079 insertions(+), 3 deletions(-)
google-beta provider View Diff 4 files changed, 1079 insertions(+), 3 deletions(-)
terraform-google-conversion View Diff 1 file changed, 339 insertions(+)

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_biglake_iceberg_catalog (33 total tests) Please add an acceptance test which includes these fields. The test should include the following:

resource "google_biglake_iceberg_catalog" "primary" {
  description = # value needed
  federated_catalog_options {
    refresh_options {
      refresh_scope {
        namespace_filters = # value needed
      }
    }
    secret_name            = # value needed
    service_directory_name = # value needed
    unity_catalog_info {
      service_principal_application_id = # value needed
    }
  }
}


Test report

Analytics

Total Tests Passed Skipped Affected
23 20 1 2
Affected Service Packages
  • biglakeiceberg

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedGlueExample
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
✅ Log ✅ TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedGlueExample
❌ Error · Log - TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample

[!CAUTION] Issues requiring attention before PR completion

🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details.

Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer.

View the recording VCR build log or the debug logs folder for detailed results.

@fuzmish, @slevenick, @wj-chen VCR tests complete for 6615a590b278cac04ddbbdf7eb9fd5487bafaa25!

modular-magician avatar Jul 01 '26 17:07 modular-magician

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 6635c4953c965f169d9bbbd3d1e7534aa429d6ae:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 4 files changed, 1081 insertions(+), 3 deletions(-)
google-beta provider View Diff 4 files changed, 1081 insertions(+), 3 deletions(-)
terraform-google-conversion View Diff 1 file changed, 339 insertions(+)

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_biglake_iceberg_catalog (33 total tests) Please add an acceptance test which includes these fields. The test should include the following:

resource "google_biglake_iceberg_catalog" "primary" {
  description = # value needed
  federated_catalog_options {
    refresh_options {
      refresh_scope {
        namespace_filters = # value needed
      }
    }
    secret_name            = # value needed
    service_directory_name = # value needed
  }
}


Test report

Analytics

Total Tests Passed Skipped Affected
23 21 1 1
Affected Service Packages
  • biglakeiceberg

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
✅ Log ✅ TestAccBiglakeIcebergIcebergCatalog_biglakeIcebergCatalogFederatedUnityExample

🟢 All tests passed!

View the recording VCR build log or the debug logs folder for detailed results.

@fuzmish, @slevenick, @wj-chen VCR tests complete for 6635c4953c965f169d9bbbd3d1e7534aa429d6ae!

modular-magician avatar Jul 01 '26 23:07 modular-magician

@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jul 06 '26 11:07 github-actions[bot]

@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jul 08 '26 10:07 github-actions[bot]