-
Notifications
You must be signed in to change notification settings - Fork 63
chore: Migrate RemoteFunctionOp operator to SQLGlot #2377
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
base: main
Are you sure you want to change the base?
Conversation
| func = sge.func(func_name, expr.expr) | ||
|
|
||
| if not op.apply_on_null: | ||
| return sge.Case( |
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.
we can simple the Case expression as:
sge.If(this=sge.Is(...), true=expr.expr, default=func)
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.
Yeah better.
| ), | ||
| ), | ||
| ), | ||
| apply_on_null=True, |
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.
Can we please add another test when "apply_on_null=False"?
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.
Added.
0818981 to
e6e4e31
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes b/452130300