-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Enhancement] Support some math functions #48476
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
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.
please add fe impl in org.apache.doris.nereids.trees.expressions.functions.executable.NumericArithmetic
and add fe constant folding in
regression-test/suites/nereids_p0/expression/fold_constant/fold_constant_numeric_arithmatic.groovy
* ScalarFunction atanh | ||
*/ | ||
public class Atanh extends ScalarFunction | ||
implements UnaryExpression, ExplicitlyCastableSignature, AlwaysNullable, PropagateNullLiteral { |
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.
why impl both AlwaysNullable and PropagateNullLiteral?
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.
I referred Acos
, and the AlwaysNullable
for the atanh
input like null
, and PropagateNullLiteral
for
…etc. but for input string: inf, should be fix it (apache#48476)
b7a640e
to
282a37c
Compare
.../java/org/apache/doris/nereids/trees/expressions/functions/executable/NumericArithmetic.java
Outdated
Show resolved
Hide resolved
already supported |
PR approved by anyone and no changes requested. |
run buildall |
TPC-H: Total hot run time: 33314 ms
|
TPC-DS: Total hot run time: 193240 ms
|
ClickBench: Total hot run time: 31.43 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
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.
LGTM
What problem does this PR solve?
Related PR: #48203
Problem Summary: support simple sql function for sinh(from Trino), asinh, atanh, acosh
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)