Skip to content

Incorrect Interval Subtraction #4489

@tustvold

Description

@tustvold

Describe the bug

There are a couple of bugs in the interval subtraction logic:

  • It assumes negating the value negates its components, see Interval Negation Incorrect #4488 for why this is incorrect
  • It assumes negation cannot overflow
  • TimestampSecondType::subtract_day_time uses microseconds instead of milliseconds

To Reproduce

Expected behavior

Additional context

Metadata

Metadata

Assignees

Labels

arrowChanges to the arrow cratebug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions