-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(rust, python, cli): Adds (Most) Remaining Trig Functions to SQLContext
#9453
Conversation
SQLContext
SQLContext
Can you please rebase this so that the CI checks can run? |
40811fb
to
136a0bb
Compare
I think I've rebased the wrong direction... or something... I'm going to try to clean this up.... |
136a0bb
to
a1d6fc0
Compare
a1d6fc0
to
36c0125
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.
Looks good @SeanTroyUWO. If the new functions are exposed to python we can merge this.
/// Compute the inverse hyperbolic tangent of the given expression | ||
#[cfg(feature = "trigonometry")] | ||
pub fn arctanh(self) -> Self { | ||
self.map_private(FunctionExpr::Trigonometry(TrigonometricFunction::ArcTanh)) | ||
} | ||
|
||
/// Convert from radians to degrees |
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 you also expose the new functions to the python API?
They should also get an entry in the python docs.
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.
SQLContext
SQLContext
|
||
df_result = pl.DataFrame( | ||
{ | ||
"pi values": [ |
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.
make pre-commit
makes this super long formatting, not sure if anyone has a good remedy for this.
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.
leave it, as long as it is automatic. :)
Thanks a lot @SeanTroyUWO! |
|
Allows the following to be used in SQL with
SQLContext
COS
COT
SIN
TAN
COSD
COTD
SIND
TAND
ACOSD
ASIND
ATAND
Some functions were already usable, but apparently not documented
ASIN
ACOS
ATAN
I'm getting change suggestions from: #7227