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

Add ANSI support for Subtract #535 #593

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dharanad
Copy link

@dharanad dharanad commented Jun 24, 2024

Which issue does this PR close?

Closes #535

Rationale for this change

Part of #313

What changes are included in this PR?

How are these changes tested?

@@ -219,6 +219,7 @@ message Subtract {
Expr right = 2;
bool fail_on_error = 3;
DataType return_type = 4;
EvalMode eval_mode = 5;

Choose a reason for hiding this comment

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

Just curious, if a Substrait plan was to send one of the options how it would map to this new functionality? How does ANSI map to an option?

https://substrait.io/extensions/functions_arithmetic/#subtract

@@ -219,6 +219,7 @@ message Subtract {
Expr right = 2;
bool fail_on_error = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead, set this fail_on_error to true when ANSI enabled.

Copy link
Author

Choose a reason for hiding this comment

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

Okay. It makes sense & i will refactor, earlier i was referecing Abs.

@dharanad
Copy link
Author

dharanad commented Jul 2, 2024

I am planning to implement my solution as a extension to work done in #616 . Will resume once that PR is merged

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.

Add ANSI support for Subtract
3 participants