-
Notifications
You must be signed in to change notification settings - Fork 298
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
[AMORO-1906]Refactor code of "Table" and "Catalog" to support Paimon format integration #1960
[AMORO-1906]Refactor code of "Table" and "Catalog" to support Paimon format integration #1960
Conversation
…copy # Conflicts: # ams/server/src/main/java/com/netease/arctic/server/table/executor/OrphanFilesCleaningExecutor.java # ams/server/src/main/java/com/netease/arctic/server/table/executor/SnapshotsExpiringExecutor.java # ams/server/src/test/java/com/netease/arctic/server/table/executor/TestSnapshotExpire.java
ams/server/src/main/java/com/netease/arctic/server/catalog/InternalIcebergCatalogImpl.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/ServerTableDescriptor.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/optimizing/OptimizingQueue.java
Show resolved
Hide resolved
...er/src/main/java/com/netease/arctic/server/optimizing/maintainer/IcebergTableMaintainer.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/table/DefaultTableService.java
Outdated
Show resolved
Hide resolved
… paimon-integration-copy
… paimon-integration-copy
...er/src/main/java/com/netease/arctic/server/optimizing/maintainer/IcebergTableMaintainer.java
Show resolved
Hide resolved
...er/src/main/java/com/netease/arctic/server/optimizing/maintainer/IcebergTableMaintainer.java
Show resolved
Hide resolved
...er/src/main/java/com/netease/arctic/server/optimizing/maintainer/IcebergTableMaintainer.java
Show resolved
Hide resolved
...rver/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
Show resolved
Hide resolved
...rver/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
Show resolved
Hide resolved
...rver/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
Outdated
Show resolved
Hide resolved
…copy # Conflicts: # ams/server/src/main/java/com/netease/arctic/server/table/executor/OrphanFilesCleaningExecutor.java
…copy # Conflicts: # ams/server/src/main/java/com/netease/arctic/server/catalog/MixedIcebergCatalogImpl.java # ams/server/src/main/java/com/netease/arctic/server/dashboard/ServerTableDescriptor.java # ams/server/src/main/java/com/netease/arctic/server/table/executor/OrphanFilesCleaningExecutor.java # ams/server/src/main/java/com/netease/arctic/server/table/executor/SnapshotsExpiringExecutor.java # ams/server/src/main/java/com/netease/arctic/server/table/executor/TableRuntimeRefreshExecutor.java # core/src/main/java/com/netease/arctic/formats/mixed/MixedHiveTable.java
core/src/main/java/com/netease/arctic/AlreadyExistsException.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/DatabaseNotEmptyException.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/NoSuchTableException.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/iceberg/IcebergSnapshot.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/iceberg/IcebergSnapshot.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/iceberg/IcebergTable.java
Outdated
Show resolved
Hide resolved
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 left some commnets, PTAL.
core/src/main/java/com/netease/arctic/formats/paimon/PaimonCatalogFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/paimon/PaimonCatalogFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/paimon/PaimonCatalogFactory.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/FormatTableDescriptor.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/ServerTableDescriptor.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/TableMaintainer.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/catalog/PaimonServerCatalog.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/FormatTableDescriptor.java
Outdated
Show resolved
Hide resolved
...server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/TableMaintainer.java
Outdated
Show resolved
Hide resolved
ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/TableMaintainer.java
Outdated
Show resolved
Hide resolved
...rver/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
Show resolved
Hide resolved
@@ -80,7 +47,10 @@ protected long getNextExecutingTime(TableRuntime tableRuntime) { | |||
|
|||
@Override | |||
protected boolean enabled(TableRuntime tableRuntime) { | |||
return tableRuntime.getTableConfiguration().isExpireSnapshotEnabled(); | |||
return tableRuntime.getFormat() == TableFormat.ICEBERG && |
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.
Does all the Paimon format tables not require services provided by TableExecutor? If so, can we move the filter logic at a higher level?
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.
Executor is a fundamental mechanism, and it's difficult to guarantee that Paimon won't use it in the future
core/src/test/java/com/netease/arctic/formats/IcebergCatalogTest.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/netease/arctic/formats/paimon/PaimonCatalogFactory.java
Outdated
Show resolved
Hide resolved
…ixedAndIcebergTableDescriptor.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
…aimonTableDescriptor.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
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.
LGTM.
Thanks a lot for your work!
…format integration (apache#1960) * Integration paimon * Integration paimon * Integration paimon * Integration paimon * tmp * Support registering for the Paimon Catalog * Support registering for the Paimon Catalog * Support registering for the Paimon Catalog * Support registering for the Paimon Catalog * Fix ut * Polish code * Fix compile error * Merge master * polish code * Merge master * Fix UT * Polish code * Polish code * polish code * polish code * Update ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com> * Update ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com> * tmp * polish code * polish code --------- Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
Why are the changes needed?
Close #1906.
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation