Skip to content

PostgreSQL compatibility: time + interval should wrap within the 24-hour time domain #22265

@Dandandan

Description

@Dandandan

Split out from #22247.

Mismatch

time + interval should wrap within the 24-hour time domain.

SELECT time '23:30' + interval '2 hours';

PostgreSQL:

01:30:00

DataFusion:

25 hours 30 mins

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

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