Core: Add support for view-default property in catalog#11064
Core: Add support for view-default property in catalog#11064nastra merged 1 commit intoapache:mainfrom
view-default property in catalog#11064Conversation
a0ed40f to
a130aaa
Compare
a130aaa to
2d41458
Compare
c4aa6ae to
1b935cb
Compare
|
CI hit #10172 |
|
@RussellSpitzer Can you review this PR when you have time? |
1b935cb to
8206c5f
Compare
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
| public static final String WAREHOUSE_LOCATION = "warehouse"; | ||
| public static final String TABLE_DEFAULT_PREFIX = "table-default."; | ||
| public static final String TABLE_OVERRIDE_PREFIX = "table-override."; | ||
| public static final String VIEW_DEFAULT_PREFIX = "view-default."; |
There was a problem hiding this comment.
That probably makes sense since we have the table-default as well, but i have no problem this being in a followup
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
|
@ebyhr are you still working on this? |
|
@nastra Yes, I was actually waiting for next review round. |
| @Override | ||
| public void initialize(String name, Map<String, String> properties) { | ||
| this.catalogName = name != null ? name : InMemoryCatalog.class.getSimpleName(); | ||
| this.catalogProperties = ImmutableMap.copyOf(properties); |
There was a problem hiding this comment.
Careful here, ImmutableMap.copyOf isn't null safe
|
|
||
| @Override | ||
| protected Map<String, String> properties() { | ||
| return catalogProperties == null ? ImmutableMap.of() : catalogProperties; |
There was a problem hiding this comment.
Depending on what you do above this may or may not be necessary
There was a problem hiding this comment.
I think this is still needed in case initialize() hasn't been called
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/view/BaseMetastoreViewCatalog.java
Outdated
Show resolved
Hide resolved
2f6f9fc to
5a19171
Compare
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java
Outdated
Show resolved
Hide resolved
4afe084 to
7911403
Compare
178a06f to
eb8b60b
Compare
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java
Outdated
Show resolved
Hide resolved
eb8b60b to
08cb705
Compare
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
08cb705 to
17c3043
Compare
|
Rebased on main branch to resolve conflicts. |
17c3043 to
a9d239a
Compare
Fixes #10822