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

Combine testComplexCast with testCast #8254

Closed
wants to merge 1 commit into from

Conversation

rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Jan 4, 2024

Combines testComplexCast and testCast into one to reduce redundant
interfaces. Some differences, including the test of input vector not being
changed after the evaluation, and caller specified nullOnFailure test, are
supported in testCast method. Removes fromType and toType parameters
from testCast method, as they can be deduced from input and expected
vectors.

Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 1fd7f37
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/65b3526cb8aa030008b7796b

@facebook-github-bot facebook-github-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 4, 2024
@rui-mo rui-mo force-pushed the wip_test_cast branch 3 times, most recently from d209f33 to 8aa8fea Compare January 9, 2024 00:47
@rui-mo rui-mo force-pushed the wip_test_cast branch 3 times, most recently from d70060d to fd3d9a7 Compare January 15, 2024 06:22
Copy link
Contributor

@kagamiori kagamiori left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for helping clean up redundant code!

evaluateAndVerify(
fromType,
toType,
makeRowVector({constInput}),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use constantRow here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. Updated.

} else {
evaluateAndVerify(fromType, toType, constantRow, constExpected);
evaluateAndVerify(
fromType, toType, makeRowVector({constInput}), constExpected, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use constantRow instead of makeRowVector({constInput}) here?

@facebook-github-bot
Copy link
Contributor

@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@kagamiori merged this pull request in 860e35b.

Copy link

Conbench analyzed the 1 benchmark run on commit 860e35b5.

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants