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

Formatters for sparrow classes #294

Merged

Conversation

Alex-PLACET
Copy link
Collaborator

No description provided.

@Alex-PLACET Alex-PLACET force-pushed the formatters_for_sparrow_classes branch from 0fa2350 to 8802f17 Compare November 22, 2024 14:37
@Alex-PLACET Alex-PLACET force-pushed the formatters_for_sparrow_classes branch 2 times, most recently from 9c1575d to ed63d2d Compare December 2, 2024 08:12
@Alex-PLACET Alex-PLACET changed the title [Draft] Formatters for sparrow classes Formatters for sparrow classes Dec 2, 2024
@Alex-PLACET Alex-PLACET marked this pull request as ready for review December 2, 2024 13:11
@Alex-PLACET Alex-PLACET requested review from DerThorsten and JohanMabille and removed request for DerThorsten December 2, 2024 13:11
@Alex-PLACET Alex-PLACET self-assigned this Dec 3, 2024
@Alex-PLACET Alex-PLACET marked this pull request as draft December 5, 2024 13:48
@Alex-PLACET Alex-PLACET force-pushed the formatters_for_sparrow_classes branch 2 times, most recently from 4545986 to 6960056 Compare December 6, 2024 09:33
@Alex-PLACET Alex-PLACET marked this pull request as ready for review December 6, 2024 14:46
{

return std::format_to(ctx.out(), "[size={}] TODO", list_value.size());
// for (std::size_t i = 0; i < list_value.size(); ++i)
Copy link
Collaborator

Choose a reason for hiding this comment

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

to remove

include/sparrow/array_api.hpp Outdated Show resolved Hide resolved
include/sparrow/arrow_array_schema_proxy.hpp Outdated Show resolved Hide resolved
include/sparrow/layout/array_base.hpp Outdated Show resolved Hide resolved
include/sparrow/layout/array_base.hpp Outdated Show resolved Hide resolved
include/sparrow/layout/array_base.hpp Outdated Show resolved Hide resolved
include/sparrow/utils/format.hpp Outdated Show resolved Hide resolved
// max with names
for (size_t i = 0; i < std::ranges::size(headers); ++i)
{
#if defined(__clang__)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would a static_cast avoid the warning here? I think it would be easier to read. If not, then maybe a single set of pragma enclosing the whole function would probably improve the readability.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No because, as headers is a template argument, depend ending of its type, std::ranges::size(headers) will not return the same type, in one case we have teh warning about the sign conversion, in the other a warning about useless static_cast.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I still think a single set of pragma enclosing the whole function would make it easier to read.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

include/sparrow/utils/nullable.hpp Show resolved Hide resolved
@Alex-PLACET Alex-PLACET force-pushed the formatters_for_sparrow_classes branch 2 times, most recently from 55ff0ba to d25de9a Compare December 17, 2024 14:50
@Alex-PLACET Alex-PLACET force-pushed the formatters_for_sparrow_classes branch from 33a06ad to 2841b40 Compare December 17, 2024 15:06
Copy link
Collaborator

@JohanMabille JohanMabille left a comment

Choose a reason for hiding this comment

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

LGTM once the two remaining comments are addressed

// }
// };

// #endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is that intentional or is it a leftover?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

@Alex-PLACET Alex-PLACET merged commit 3b9e4da into man-group:main Dec 18, 2024
71 of 72 checks passed
@Alex-PLACET Alex-PLACET deleted the formatters_for_sparrow_classes branch December 18, 2024 10:58
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.

3 participants