Make division-by-zero behavior configurable #213
Labels
documentation
Improvements or additions to documentation
effort - medium
mid-sized issue with average implementation time/difficulty
enhancement
New feature or request
user feature
Adding a new user-facing feature/functionality
Currently, the behavior when division-by-zero occurs is purely controlled by the database being used to execute PyDough code. This should, instead, be configurable like some other settings through
PyDoughConfigs
. The configurable settings for division-by-zero can include:a / b
toa / KEEP_IF(b, b != 0)
a / b
toCASE WHEN b = 0 THEN 0 ELSE a / b END
This configurable option should be noted in the documentation.
The text was updated successfully, but these errors were encountered: