Skip to content

test: make CompatibleDtypeFeatureGroup test a distinct dtype path - #1090

Open
RawNuke wants to merge 1 commit into
mloda-ai:mainfrom
RawNuke:fix/1085/compatible-dtype-distinct-test
Open

test: make CompatibleDtypeFeatureGroup test a distinct dtype path#1090
RawNuke wants to merge 1 commit into
mloda-ai:mainfrom
RawNuke:fix/1085/compatible-dtype-distinct-test

Conversation

@RawNuke

@RawNuke RawNuke commented Aug 7, 2026

Copy link
Copy Markdown

Summary

Fix #1085

CompatibleDtypeFeatureGroup was byte-identical to ForceFinalOnFinalEngine, both testing a string filter on a string column. This change replaces the string column with an integer rank column and uses an integer equal filter, making it test a genuinely distinct compatible-dtype scenario (int-vs-int instead of string-vs-string).

Changes

  • CompatibleDtypeFeatureGroup: changed from status (string) column to rank (int64) column
  • test_compatible_dtype_passes_validation: changed from status == active filter to rank == 1 integer equal filter
  • Expected result: [10, 30] (rows with rank=1, matching ForceFinalOnFinalEngine's pair pattern)

Verification

  • All 26 tests in tests/test_core/test_filter/test_feature_group_final_filters.py pass
  • All 513 tests in the filter test suite pass
  • Ruff format and check pass clean

@RawNuke
RawNuke requested a review from TomKaltofen as a code owner August 7, 2026 03:55
@TomKaltofen

Copy link
Copy Markdown
Collaborator

@RawNuke Please rebase this PR

…peFeatureGroup

Signed-off-by: RawNuke <67506722+RawNuke@users.noreply.github.com>
@RawNuke
RawNuke force-pushed the fix/1085/compatible-dtype-distinct-test branch from 2a51b47 to c2a7153 Compare August 7, 2026 16:01
@RawNuke

RawNuke commented Aug 7, 2026

Copy link
Copy Markdown
Author

Rebased onto main. The test file had been refactored since I opened this, so rather than a messy merge I re-applied the change as a single additive test, test_compatible_dtype_passes_validation, on top of current main. It uses the existing CompatibleDtypeFeatureGroup class. Ready for CI.

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.

The compatible-dtype final-filter test duplicates the FG-and-engine-agree test

2 participants