Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove iceberg.rest-catalog.parent-namespace config property #24269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Nov 27, 2024

Description

The property was added for supporting Unity catalog.
They changed the behavior to respect warehouse property in unitycatalog/unitycatalog#324.

Release notes

## Iceberg
* TBD. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Nov 27, 2024
@github-actions github-actions bot added docs iceberg Iceberg connector labels Nov 27, 2024
@ebyhr ebyhr force-pushed the ebi/iceberg-rest-parent-workspace branch from 03ee58c to 7ea6639 Compare November 27, 2024 04:07
The property was added for supporting Unity catalog.
They changed the behavior to respect warehouse property in
unitycatalog/unitycatalog#324.
throw new TrinoException(NOT_SUPPORTED, "Nested namespace is not enabled for this catalog");
}
return Arrays.stream(namespace.levels(), this.parentNamespace.length(), namespace.length())
.collect(joining(NAMESPACE_SEPARATOR));
return namespace.toString();
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use NAMESPACE_SEPARATOR instead.

Suggested change
return namespace.toString();
return String.join(NAMESPACE_SEPARATOR, namespace.levels());

@@ -259,7 +259,7 @@ public static void main(String[] args)
.addIcebergProperty("iceberg.security", "read_only")
.addIcebergProperty("iceberg.catalog.type", "rest")
.addIcebergProperty("iceberg.rest-catalog.uri", unityCatalog.uri() + "/iceberg")
.addIcebergProperty("iceberg.rest-catalog.parent-namespace", "unity")
.addIcebergProperty("iceberg.rest-catalog.warehouse", "unity")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update this prop in TestIcebergUnityRestCatalogConnectorSmokeTest as well.
Do we need to update unity image with the changes from the unity PR you linked?

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

Successfully merging this pull request may close these issues.

2 participants