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

chore: simplify the return type of validate_data_types() #9491

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Mar 7, 2024

Which issue does this PR close?

Ref to #9077 (comment)

Rationale for this change

validate_data_types() has a logically unreachable type ColumnarValue. And this is sometimes misleading to the caller. Considering how it's implemented and would be used, I changed the return type to Result<()> to make it easier to invoke.

This function is from #9388

What changes are included in this PR?

Change the return type of validate_data_types() and corresponding callers.

Are these changes tested?

N/A

Are there any user-facing changes?

No

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia
Copy link
Member Author

waynexia commented Mar 7, 2024

FYI @Omega359

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@Omega359
Copy link
Contributor

Omega359 commented Mar 7, 2024

LGTM

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @waynexia lgtm
Thats much better

Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

LGTM

@jayzhan211 jayzhan211 merged commit fc81bf1 into apache:main Mar 8, 2024
23 checks passed
@waynexia waynexia deleted the simplify-validate_data_types branch March 8, 2024 06:38
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.

4 participants