Add SIGN function in PyDough #225
Labels
documentation
Improvements or additions to documentation
effort - low
quick & simple issue
enhancement
New feature or request
user feature
Adding a new user-facing feature/functionality
Goal: add a
SIGN
function to PyDough with the following functionality, which should be tested e2e (seetest_pipeline.py
for examples):SIGN(X)
is equivalent to the python string expression0 if X == 0 else (1 if X > 0 else -1)
, or the SQL expressionCASE WHEN X == 0 THEN 0 WHEN X > 0 THEN 1 WHEN X < 0 THEN -1 END
This feature need to be documented in the function list documentation
The text was updated successfully, but these errors were encountered: