Skip to content

[#4795] feat(core): Add column entity in Gravitino#4866

Merged
jerryshao merged 1 commit intoapache:mainfrom
jerryshao:issue-4795
Sep 13, 2024
Merged

[#4795] feat(core): Add column entity in Gravitino#4866
jerryshao merged 1 commit intoapache:mainfrom
jerryshao:issue-4795

Conversation

@jerryshao
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds a basic implementation of ColumnEntity in Gravitino.

Why are the changes needed?

This is the first PR to let Gravitino to manage columns in its store.

Fix: #4795

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Add UTs to test.

@jerryshao jerryshao self-assigned this Sep 5, 2024
public static final Field AUDIT_INFO =
Field.required("audit_info", AuditInfo.class, "The audit details of the table");
public static final Field COLUMNS =
Field.optional("columns", ColumnEntity[].class, "The columns of the table");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you mark it as optional? Just to make it compatible with the previous version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is mainly for compatible thinking.

Copy link
Contributor

@mchades mchades left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

Copy link
Contributor

@mchades mchades left a comment

Choose a reason for hiding this comment

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

No more comments

@jerryshao jerryshao merged commit 682e5a2 into apache:main Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask] Define the column and column entity in Gravitino

3 participants