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

Flink, Aliyun, MR, Delta-lake, Hive3, Parquet, Data: replaced .size() > 0 with isEmpty() #8819

Merged
merged 19 commits into from
Oct 13, 2023

Conversation

PickBas
Copy link
Contributor

@PickBas PickBas commented Oct 12, 2023

From issue #8810.

@github-actions github-actions bot added the flink label Oct 12, 2023
Co-authored-by: Fokko Driesprong <fokko@apache.org>
@nastra
Copy link
Contributor

nastra commented Oct 13, 2023

@PickBas thanks for working on this. I think it would be great to combine all changes in a single PR rather than opening 1-file PRs

@PickBas
Copy link
Contributor Author

PickBas commented Oct 13, 2023

@PickBas thanks for working on this. I think it would be great to combine all changes in a single PR rather than opening 1-file PRs

@nastra Thank you for your feedback. I've done 1 PR per module so we could keep the changes traceable and manageable, as @Fokko requested in PR #8813.

I may do it another way: keep PRs open for spark and core modules, since they include most of the changes, and combine the rest of the modules into a single PR.

If that works for both you and @Fokko, I will surely do that.

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Thanks @PickBas!

I may do it another way: keep PRs open for spark and core modules, since they include most of the changes, and combine the rest of the modules into a single PR.

Yeah l like this. Some of the changes for the modules are smaller than others, we can combine the small ones together and leave the bigger ones like Spark/Core in separate PRs. IMO it's just a balance between looking at Git history and then also easier PR review. With many smaller change PRs the commit history becomes less meaningful, but with too big PRs it becomes hard to review and easy to miss things

[ISSUE apache#8810] data/*: replaced .size() > 0 with isEmpty()
@github-actions github-actions bot added the data label Oct 13, 2023
[ISSUE apache#8810] parquet/*: replaced .size() > 0 with isEmpty()
@github-actions github-actions bot added the AWS label Oct 13, 2023
[ISSUE apache#8810] api/*: replaced .size() > 0 with isEmpty()
@github-actions github-actions bot added the API label Oct 13, 2023
[ISSUE apache#8810] hive3/*: replaced .size() > 0 with isEmpty()
@github-actions github-actions bot added the hive label Oct 13, 2023
[ISSUE apache#8810] delta-lake/*: replaced .size() > 0 with isEmpty()
[ISSUE apache#8810] mr/*: replaced .size() > 0 with isEmpty()
@github-actions github-actions bot added the MR label Oct 13, 2023
[ISSUE apache#8810] aliyun/*: replaced .size() > 0 with isEmpty()
@PickBas PickBas changed the title Flink: flink/*: replaced .size() > 0 with isEmpty() Flink, Aliyun, MR, Delta-lake, Hive3, Parquet, Data: replaced .size() > 0 with isEmpty() Oct 13, 2023
@PickBas
Copy link
Contributor Author

PickBas commented Oct 13, 2023

@amogh-jahagirdar @nastra @Fokko Done. Now the rest of the modules are included in this pull request.

@Fokko
Copy link
Contributor

Fokko commented Oct 13, 2023

If that works for both you and @Fokko, I will surely do that.

I'm open to everything.

@@ -105,7 +105,7 @@ public void testNamespaceExists() {
public void testListNamespace() {
String namespace = createNamespace();
List<Namespace> namespaceList = glueCatalog.listNamespaces();
Assert.assertTrue(namespaceList.size() > 0);
Assert.assertFalse(namespaceList.isEmpty());
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, much easier to read 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we might want to switch all Junit4-style assertions to AssertJ in the AWS integration test module (in a separate PR)

Copy link
Member

@ajantha-bhat ajantha-bhat left a comment

Choose a reason for hiding this comment

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

nit: PR title can be !.isEmpty() or isNotEmpty() instead of isEmpty()

@Fokko Fokko merged commit 2268bd8 into apache:main Oct 13, 2023
46 checks passed
@Fokko
Copy link
Contributor

Fokko commented Oct 13, 2023

Thanks @PickBas for picking this up 🙌 and @nastra and @ajantha-bhat for the review 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants