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

Fix column types when default column is being patched for missing data features #1188

Merged
merged 8 commits into from
Jun 5, 2023

Conversation

rakeshkashyap123
Copy link
Collaborator

Fix column types when default column is being patched for missing data features in both anchored and SWA features.

Copy link
Collaborator

@anirudhagar13 anirudhagar13 left a comment

Choose a reason for hiding this comment

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

Some nit comments / request for additional unit tests.

gradle.properties Outdated Show resolved Hide resolved
assertEquals(featureList(0).getAs[Row]("featureWithNull7"), null)
assertEquals(featureList(0).getAs[Row]("featureWithNull"),-1.0f)
assertEquals(featureList(0).getAs[Row]("featureWithNull4"),Map())
assertEquals(featureList(0).getAs[Row]("featureWithNull4"), null)
assertEquals(featureList(0).getAs[Row]("featureWithNull2"),1.0f)
assertEquals(featureList(0).getAs[Row]("derived_featureWithNull"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test should have failed right? As derived_featureWithNull is computed from featureWithNull which itself is a NUMERIC type. Do we still expect the type of derived features from missed anchored features as
string -> float?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad, the @test annotation was removed from this test, so the test was not being run.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, I still had this question, why is derived_featureWithNull a tensor when we know the type of featureWithNull is NUMERIC? Is the right expectation?

@rakeshkashyap123 rakeshkashyap123 added the safe to test Tag to execute build pipeline for a PR from forked repo label Jun 5, 2023
Copy link
Collaborator

@anirudhagar13 anirudhagar13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@rakeshkashyap123 rakeshkashyap123 merged commit cb6032d into main Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Tag to execute build pipeline for a PR from forked repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants