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 SIGN function in PyDough #225

Open
knassre-bodo opened this issue Jan 21, 2025 · 0 comments
Open

Add SIGN function in PyDough #225

knassre-bodo opened this issue Jan 21, 2025 · 0 comments
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

Comments

@knassre-bodo
Copy link
Contributor

Goal: add a SIGN function to PyDough with the following functionality, which should be tested e2e (see test_pipeline.py for examples):

  • SIGN(X) is equivalent to the python string expression 0 if X == 0 else (1 if X > 0 else -1), or the SQL expression CASE 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

@knassre-bodo knassre-bodo added 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 labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant