-
Notifications
You must be signed in to change notification settings - Fork 3k
Core: Add remaining View APIs and support for InMemoryCatalog #7880
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
Conversation
9da9538 to
4f295a1
Compare
582d367 to
a8a5e25
Compare
core/src/main/java/org/apache/iceberg/BaseMetastoreViewCatalog.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/BaseMetastoreViewCatalog.java
Outdated
Show resolved
Hide resolved
0dde21e to
a5bc2a7
Compare
core/src/main/java/org/apache/iceberg/BaseMetastoreCatalog.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/iceberg/view/UpdateViewRepresentation.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/iceberg/catalog/CatalogWithViews.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
| .replaceTransaction() | ||
| .commitTransaction()) | ||
| .isInstanceOf(NoSuchTableException.class) | ||
| .hasMessageStartingWith("Table does not exist: ns.view"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error seems a bit odd since the object does exist, it is just a view not a table. While I'd love to have a nicer error message, this probably shouldn't block getting this in. We can explore whether it is clean to have a better message later (by checking if catalog is a view catalog?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a TODO and I'll make sure to follow up on this topic
| .withQuery("spark", "select * from ns.tbl") | ||
| .replace()) | ||
| .isInstanceOf(NoSuchViewException.class) | ||
| .hasMessageStartingWith("View does not exist: ns.table"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same idea as above.
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/view/BaseMetastoreViewCatalog.java
Outdated
Show resolved
Hide resolved
|
Thanks, @nastra! Merged. |
No description provided.