Skip to content

Add a timeline type for relative time #8635

Closed
@emilk

Description

@emilk

We currently have two time types:

  • Sequence
  • Temporal

The problem is that the temporal type is used both for absolute times (2024-01-10 09:44:01Z) and relative times (+32m 12s).
Because of this problem, relative times will show up as 1970-01-01 00:32:12Z in arrow formatting.

Relative times are useful for "time since robot started" or whatever.

I suggest we split Temporal into absolute and relative. The arrow datatype would then become:

  • Sequence - > DataType::Int64
  • Duration - > DataType::Duration64(TimeUnit::Nanosecond)
  • Timestamp - > DataType::Timestamp(TimeUnit::Nanosecond, None)

Should do this first

Related

Future work

  • Adding even more types of indices, e.g. UUID

TODO

Future work

  • Rename "timeline" to "index" everywhere
    • Rename disable_timeline and reset_time

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions