Skip to content

[#890] feat(common): Add JSON serde of UpdateColumnNullability#883

Merged
jerryshao merged 2 commits intoapache:mainfrom
mchades:json-change-null
Nov 30, 2023
Merged

[#890] feat(common): Add JSON serde of UpdateColumnNullability#883
jerryshao merged 2 commits intoapache:mainfrom
mchades:json-change-null

Conversation

@mchades
Copy link
Contributor

@mchades mchades commented Nov 30, 2023

What changes were proposed in this pull request?

Add JSON serde of UpdateColumnNullability

Why are the changes needed?

Fix: #890

Does this PR introduce any user-facing change?

no, only add JSON serde, client-side not implemented yet

How was this patch tested?

UTs added

@mchades mchades self-assigned this Nov 30, 2023
@github-actions
Copy link

github-actions bot commented Nov 30, 2023

Code Coverage Report

Overall Project 66.26% -0.22% 🟢
Files changed 11.81% 🔴

Module Coverage
common 42.38% -0.92% 🔴
Files
Module File Coverage
common TableUpdateRequest.java 8.5% -7.21% 🔴

@mchades mchades changed the title [#767] feat(common): Add JSON serde of UpdateColumnNullability [#890] feat(common): Add JSON serde of UpdateColumnNullability Nov 30, 2023
@mchades mchades marked this pull request as ready for review November 30, 2023 09:05

@Getter
@JsonProperty("newNullable")
private final boolean newNullable;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to use "nullable" instead of "newNullable", which seems a little weird.


@Getter
@JsonProperty("fieldName")
private final String[] fieldName;
Copy link
Contributor

Choose a reason for hiding this comment

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

fieldName -> fieldNames?

Copy link
Contributor

Choose a reason for hiding this comment

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

We have many places which uses either "fieldName" or "fieldNames", I think we should unify them somehow. @mchades can you please create an issue to track this issue>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, #897 will track this

@jerryshao jerryshao merged commit a6316af into apache:main Nov 30, 2023
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] Add JSON serde of UpdateColumnNullability

3 participants