-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Spark expression fuzzer test on deny_precision_loss functions #11526
Conversation
✅ Deploy Preview for meta-velox canceled.
|
cb7e860
to
f726750
Compare
cc: @mbasmanova Thanks. |
|
||
namespace facebook::velox::functions::sparksql::fuzzer { | ||
|
||
class MultiplyDenyPrecisionLossArgGenerator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These names are very long. Would it make sense to fold this into MultiplyArgGenerator and add a boolean parameter to the ctor for denyPrecisionLoss?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review. It makes sense to me. Updated this PR to add an 'allowPrecisionLoss' parameter for each generator.
f726750
to
2d9c50f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rui-mo Thank you for the quick fix.
@Yuhta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Adds 'allowPrecisionLoss' parameter for decimal add/subtract/multiply/divide
argument generators. When false, the generators are used for
deny_precision_loss arithmetic functions.
Fixes: #11522.