You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PostgreSQL compatibility: factorial(21) should not overflow when PostgreSQL returns a numeric answer #22259
Activity
xiedeyantu commentedon May 16, 2026
take
kumarUjjawal commentedon May 18, 2026
duckdb
Jefffrey commentedon May 26, 2026
another datapoint is that it seems spark returns factorial as long, instead of decimal
https://github.com/apache/spark/blob/a100c0bfe5e749442620901ee20d1dc1b9b47aba/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala#L660-L704