Skip to content

GH-46157: [C++] Disable util test when ARROW_COMPUTE=OFF - #46162

Closed
WillAyd wants to merge 1 commit into
apache:mainfrom
WillAyd:fix-compute-test-failure
Closed

WillAyd wants to merge 1 commit into
apache:mainfrom
WillAyd:fix-compute-test-failure

Conversation

@WillAyd

@WillAyd WillAyd commented Apr 16, 2025 •

Copy link
Copy Markdown
Contributor

Rationale for this change

The test suite currently fails when ARROW_COMPUTE is disabled

What changes are included in this PR?

This disables the particular util test when ARROW_COMPUTE=OFF

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@WillAyd
WillAyd force-pushed the fix-compute-test-failure branch from ff74cc3 to bed3874 Compare April 16, 2025 12:42
@WillAyd WillAyd changed the title GH46157: [C++] Disable util test when ARROW_COMPUTE=OFF GH-46157: [C++] Disable util test when ARROW_COMPUTE=OFF Apr 16, 2025
EXPECT_FATAL_FAILURE(AssertWithinUlp(123.456f, 123.456085f, 10), "not within 10 ulps");
}

#ifdef ARROW_COMPUTE

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.

while this might solve the specific test failure, I think the underlying problem is not solved.
gtest_util.cc is build if ARROW_TESTING=ON, it should not require run_end_encode as that requires ARROW_COMPUTE.
In my opinion the RunEndEncodeTableColumns function should be part of test utilities from arrow::compute, I created a PR for that:
#46161
This also appears on other issues as the one found here:
https://github.com/apache/arrow/pull/45618/files#diff-8e690315a407919d147f16a9a534fc9f5c3f6345b58820e2057afa7cd14bea6bR741
were I had to add run_end_encode to the non-conditional sources that are always included as part of libarrow as a workaround.

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.

Ah that's great - thanks for taking a look! I agree your solution is more robust - let's roll with that

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