Skip to content
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

Merged
merged 11 commits into from
Sep 24, 2024

Conversation

baiyangtx
Copy link
Contributor

Why are the changes needed?

We are trying to adapt a non-standard tableFormat using Amoro

Brief change log

  • Refactor TableFormat to a non-enum type.
  • Replace all == comparisons in your code with Object.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

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added module:mixed-spark Spark module for Mixed Format module:ams-server Ams server module labels Sep 4, 2024
@github-actions github-actions bot added the module:mixed-flink Flink moduel for Mixed Format label Sep 9, 2024
Copy link
Contributor

@zhoujinsong zhoujinsong left a 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)) {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

# Conflicts:
#	amoro-ams/src/main/java/org/apache/amoro/server/persistence/mapper/TableMetaMapper.java
Copy link
Contributor

@zhoujinsong zhoujinsong left a 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!

@zhoujinsong zhoujinsong merged commit dd29101 into apache:master Sep 24, 2024
4 checks passed
@baiyangtx baiyangtx deleted the dynamic-format branch September 24, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ams-server Ams server module module:common module:mixed-flink Flink moduel for Mixed Format module:mixed-spark Spark module for Mixed Format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants