Skip to content

Nessie: Add table() and view() API to NessieIcebergClient#9477

Merged
nastra merged 1 commit intoapache:mainfrom
ajantha-bhat:nessie_comp
Jan 15, 2024
Merged

Nessie: Add table() and view() API to NessieIcebergClient#9477
nastra merged 1 commit intoapache:mainfrom
ajantha-bhat:nessie_comp

Conversation

@ajantha-bhat
Copy link
Copy Markdown
Member

@ajantha-bhat ajantha-bhat commented Jan 15, 2024

table() in NessieIcebergClient was renamed to fetchContent() with generic functionality while adding the view support for NessieCatalog.
Nessie doesn't have to maintain compatibility as per https://iceberg.apache.org/contribute/#minor-version-deprecations-discretionary.

But while bumping Iceberg version at Trino side (trinodb/trino#20308), we concluded that it will be cleaner to have these table() and view() API.

}

public IcebergTable table(TableIdentifier tableIdentifier) {
return (IcebergTable) fetchContent(tableIdentifier);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

before casting I wonder whether this should actually check whether this is actually a table and throw an error if not

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Instead of throwing exception, I have updated to returning null. So, that the behaviour will same as before adding the view changes.

https://github.com/apache/iceberg/pull/8909/files#diff-4abd6d90c69587709bc754be9ea305080395bad9ac778176a0e3ab2563ac8464R198

@nastra nastra merged commit 23e17ce into apache:main Jan 15, 2024
geruh pushed a commit to geruh/iceberg that referenced this pull request Jan 26, 2024
adnanhemani pushed a commit to adnanhemani/iceberg that referenced this pull request Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants