Split out from #22247. ### Mismatch `factorial` of a negative value should error. ```sql SELECT factorial(-1); ``` PostgreSQL: ```text ERROR: factorial of a negative number is undefined ``` DataFusion: ```text 1 ``` ### Expected behavior For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.
Split out from #22247.
Mismatch
factorialof a negative value should error.PostgreSQL:
DataFusion:
Expected behavior
For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.