Skip to content

fix(cudf): Update hash_with_seed test expected values for cudf 26.02#16026

Closed
Avinash-Raj wants to merge 3 commits intofacebookincubator:mainfrom
Avinash-Raj:fix-cudf-hash-test-values
Closed

fix(cudf): Update hash_with_seed test expected values for cudf 26.02#16026
Avinash-Raj wants to merge 3 commits intofacebookincubator:mainfrom
Avinash-Raj:fix-cudf-hash-test-values

Conversation

@Avinash-Raj
Copy link
Copy Markdown
Contributor

Summary

Updates the expected hash values in CudfFilterProjectTest.hashWithSeed and CudfFilterProjectTest.hashWithSeedMultiColumns tests to match the new output from cudf 26.02.

Problem

After the cudf dependency was upgraded from 25.12 to 26.02 in commit 2cf3756 (#15937), the velox_cudf_spark_filter_project_test started failing:

[ FAILED ] CudfFilterProjectTest.hashWithSeed
[ FAILED ] CudfFilterProjectTest.hashWithSeedMultiColumns

The cudf::hashing::murmurhash3_x86_32() function now produces different hash values for the same inputs, causing the hardcoded expected values in the tests to no longer match.

Root Cause

The cudf 26.02 upgrade changed the behavior of the MurmurHash3 x86 32-bit hash function. This is likely an intentional change or bug fix in the upstream cudf library.

Changes

Updated the expected hash values in FilterProjectTest.cpp:

Test Index Old Value New Value
hashWithSeed 0 1049813396 -1604625029
hashWithSeed 1 1800792340 -853646085
hashWithSeedMultiColumns 0 -864217843 -572895191
hashWithSeedMultiColumns 1 821064941 724095561

Testing

  • velox_cudf_spark_filter_project_test passes with updated values

Checklist

  • Tests pass locally
  • No new warnings introduced

@meta-cla
Copy link
Copy Markdown

meta-cla bot commented Jan 15, 2026

Hi @Avinash-Raj!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 15, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 93164d8
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/696e6547578f1b000873eedc

Copy link
Copy Markdown
Collaborator

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Thanks! Yes, this was an intentional change.

@karthikeyann karthikeyann added the cudf cudf related - GPU acceleration label Jan 16, 2026
@meta-cla
Copy link
Copy Markdown

meta-cla bot commented Jan 16, 2026

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 16, 2026
@karthikeyann karthikeyann added the ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall label Jan 16, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Jan 20, 2026

@kgpai has imported this pull request. If you are a Meta employee, you can view this in D91045880.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Jan 20, 2026

@kgpai merged this pull request in 878b9f1.

karthikeyann pushed a commit to karthikeyann/velox that referenced this pull request Jan 24, 2026
…acebookincubator#16026)

Summary:
Updates the expected hash values in `CudfFilterProjectTest.hashWithSeed` and `CudfFilterProjectTest.hashWithSeedMultiColumns` tests to match the new output from cudf 26.02.

## Problem

After the cudf dependency was upgraded from 25.12 to 26.02 in commit 2cf3756 (facebookincubator#15937), the `velox_cudf_spark_filter_project_test` started failing:

[ FAILED ] CudfFilterProjectTest.hashWithSeed
[ FAILED ] CudfFilterProjectTest.hashWithSeedMultiColumns

The `cudf::hashing::murmurhash3_x86_32()` function now produces different hash values for the same inputs, causing the hardcoded expected values in the tests to no longer match.

## Root Cause

The cudf 26.02 upgrade changed the behavior of the MurmurHash3 x86 32-bit hash function. This is likely an intentional change or bug fix in the upstream cudf library.

## Changes

Updated the expected hash values in `FilterProjectTest.cpp`:

| Test | Index | Old Value | New Value |
|------|-------|-----------|-----------|
| `hashWithSeed` | 0 | 1049813396 | -1604625029 |
| `hashWithSeed` | 1 | 1800792340 | -853646085 |
| `hashWithSeedMultiColumns` | 0 | -864217843 | -572895191 |
| `hashWithSeedMultiColumns` | 1 | 821064941 | 724095561 |

## Testing

- [x] `velox_cudf_spark_filter_project_test` passes with updated values

## Checklist

- [x] Tests pass locally
- [x] No new warnings introduced

Pull Request resolved: facebookincubator#16026

Reviewed By: mbasmanova

Differential Revision: D91045880

Pulled By: kgpai

fbshipit-source-id: 1b05a687907ce39844f04413ceb7be6786e29669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. cudf cudf related - GPU acceleration Merged ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants