Skip to content

GH-45827: [C++] Add io directory to Meson configuration - #45828

Merged
kou merged 3 commits into
apache:mainfrom
WillAyd:meson-add-io-directory
Mar 19, 2025
Merged

kou merged 3 commits into
apache:mainfrom
WillAyd:meson-add-io-directory

Conversation

@WillAyd

@WillAyd WillAyd commented Mar 17, 2025 •

Copy link
Copy Markdown
Contributor

Rationale for this change

This continues building out the Meson C++ configuration

What changes are included in this PR?

This adds the io directory to the Meson configuration

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #45827 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #45827 has no components, please add labels for components.

Comment thread cpp/src/arrow/io/meson.build Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From a purity perspective I think it would be better if we used hdfs as a subproject, and could create a dependency for it. However, I wouldn't find the original source for the file thirdparty/hadoop/include/hdfs.h

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Does there happen to be a canonical link to download just the hadoop-hdfs-native-client?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure that there is a way with the wrapdb to natively extract just the file we need from a collection of projects like that without a top level CMakeLists.txt or meson.build configuration. I'll have to research that further if its a blocker here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this is a blocker.
We can keep using the vendored hdfs.h.

We loads libhdfs.so manually by dlload() not compile time -lhdfs. So we just need hdfs.h. If hdfs.h has many backward incompatible changes, we may want to use upstream hdfs.h. But it's very stable so far. So we can keep using the vendored hdfs.h.

@WillAyd

WillAyd commented Mar 17, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions crossbow submit *meson

@github-actions

Copy link
Copy Markdown

Revision: 14e5b8486efc47d01e42269c197ed5ce83e55c2f

Submitted crossbow builds: ursacomputing/crossbow @ actions-3197a7e1ab

Task Status
test-conda-cpp-meson GitHub Actions

@WillAyd

WillAyd commented Mar 17, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions crossbow submit *meson

@github-actions

Copy link
Copy Markdown

Revision: 9b2b04c733d9e11ef1a0fe7a699640a53affcf12

Submitted crossbow builds: ursacomputing/crossbow @ actions-61da790a53

Task Status
test-conda-cpp-meson GitHub Actions

Comment thread cpp/src/arrow/io/meson.build Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread cpp/src/arrow/meson.build Outdated
Comment on lines 247 to 270

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we do this when we add filesystem/ directory?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are you asking to remove the entire block for now?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes!

@WillAyd

WillAyd commented Mar 18, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions crossbow submit *meson

@github-actions

Copy link
Copy Markdown

Revision: 0850181

Submitted crossbow builds: ursacomputing/crossbow @ actions-dc99d8a809

Task Status
test-conda-cpp-meson GitHub Actions

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@kou
kou merged commit fc0862a into apache:main Mar 19, 2025
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit fc0862a.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them.

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.

2 participants