-
Notifications
You must be signed in to change notification settings - Fork 288
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
[Improvement]: Refactor TableFormat to a non-enumeration type to support non-open source formats #3167
Conversation
6c9c9ca
to
72528e5
Compare
cddafec
to
7db2d95
Compare
34bab1d
to
482aff7
Compare
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.
@baiyangtx Thanks for the contribution, I left some comments, PTAL.
return TableMeta.TableType.ARCTIC.toString(); | ||
} else if (format.equals(TableFormat.PAIMON)) { | ||
return TableMeta.TableType.PAIMON.toString(); | ||
} else if (format.equals(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.
It seems that the processing of Iceberg and Hudi has been mixed together here.
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.
fixed
amoro-ams/src/main/java/org/apache/amoro/server/persistence/mapper/TableMetaMapper.java
Show resolved
Hide resolved
amoro-format-iceberg/src/test/java/org/apache/amoro/catalog/TableTestBase.java
Outdated
Show resolved
Hide resolved
amoro-format-iceberg/src/main/java/org/apache/amoro/mixed/CatalogLoader.java
Outdated
Show resolved
Hide resolved
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/maintainer/TableMaintainer.java
Outdated
Show resolved
Hide resolved
# Conflicts: # amoro-format-iceberg/src/main/java/org/apache/amoro/mixed/CatalogLoader.java
# Conflicts: # amoro-ams/src/main/java/org/apache/amoro/server/persistence/mapper/TableMetaMapper.java
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 for the contribution!
Why are the changes needed?
We are trying to adapt a non-standard tableFormat using Amoro
Brief change log
==
comparisons in your code withObject.equals
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