Skip to content

PostgreSQL compatibility: factorial(21) should not overflow when PostgreSQL returns a numeric answer #22259

@Dandandan

Description

@Dandandan

Split out from #22247.

Mismatch

factorial(21) should not overflow when PostgreSQL returns a numeric answer.

SELECT factorial(21);

PostgreSQL:

51090942171709440000

DataFusion:

Overflow happened on FACTORIAL(21)

Expected behavior

For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions