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

[#2041][#2306] Improvement(catalog-hadoop):Add E2E integration test for Hadoop catalog #2294

Merged
merged 16 commits into from
Feb 23, 2024

Conversation

coolderli
Copy link
Collaborator

@coolderli coolderli commented Feb 21, 2024

What changes were proposed in this pull request?

Why are the changes needed?

Fix: #2041
Fix: #2306

Does this PR introduce any user-facing change?

  • no

How was this patch tested?

  • ./gradlew build

@coolderli coolderli marked this pull request as draft February 21, 2024 09:42
@coolderli coolderli changed the title [#2041] Improvement(fileset):Add E2E integration test for fileset [WIP][#2041] Improvement(fileset):Add E2E integration test for fileset Feb 21, 2024
@coolderli coolderli marked this pull request as ready for review February 21, 2024 09:48
@coolderli coolderli changed the title [WIP][#2041] Improvement(fileset):Add E2E integration test for fileset [Don't Merge][#2041] Improvement(fileset):Add E2E integration test for fileset Feb 21, 2024
@coolderli coolderli closed this Feb 21, 2024
@coolderli coolderli reopened this Feb 21, 2024
@coolderli coolderli changed the title [Don't Merge][#2041] Improvement(fileset):Add E2E integration test for fileset [#2041] Improvement(fileset):Add E2E integration test for fileset Feb 22, 2024
@coolderli
Copy link
Collaborator Author

@jerryshao @yuqi1129 @qqqttt123 @mchades Could you help me review this? Thanks.

@@ -575,7 +578,7 @@ private FilesetEntity updateFilesetEntity(
.withName(newName)
.withNamespace(ident.namespace())
.withId(filesetEntity.id())
.withComment(filesetEntity.comment())
.withComment(newComment)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a UT to cover this?

break;
case TABLE:
case FILESET:
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here, I think it is necessary to have UTs to cover it.

Copy link
Contributor

Choose a reason for hiding this comment

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

@yuqi1129 can you please help to review this part and the UT added below?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jerryshao
He has added test cases about it, please see validateDeleteSchemaCascade, validateDeleteCatalogCascade, and validateDeleteFilesetCascade

Copy link
Contributor

Choose a reason for hiding this comment

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

The other parts are fine for me.

@coolderli coolderli closed this Feb 23, 2024
@coolderli coolderli reopened this Feb 23, 2024
@coolderli
Copy link
Collaborator Author

@jerryshao Could you take a look, I refactor some UTs. Thanks.

@jerryshao jerryshao changed the title [#2041] Improvement(fileset):Add E2E integration test for fileset [#2041][#2306] Improvement(catalog-hadoop):Add E2E integration test for Hadoop catalog Feb 23, 2024
Copy link
Contributor

@jerryshao jerryshao 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 a lot @coolderli for your work.

@jerryshao jerryshao merged commit 5131d17 into apache:main Feb 23, 2024
12 checks passed
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.

[Improvement] Add more unit tests for fileset [Subtask] Add E2E integration test for fileset
3 participants