What type should logical timestamps be by default? #7973
Replies: 3 comments 1 reply
-
Forwarding my datapoint from slack: our current internal timestamp type of |
Beta Was this translation helpful? Give feedback.
-
A related question is whether we should use integer milliseconds as our logical timestamps. This has the potential pain point that it limits the maximum number of distinct timestamps per second, and if one wanted high-throughput, high-resolution computations, we wouldn't be able to provide both I believe (i.e., we'd be limited to 1k distinguishable transactions per second). |
Beta Was this translation helpful? Give feedback.
-
Another option presented by @benesch is to have an opaque |
Beta Was this translation helpful? Give feedback.
-
We currently use
u64
as our internal timestamp type. This has some friction with others who usei64
as the timestamp type (Kafka) and those who usetimestamp
as the timestamp type (SQL). What are the benefits and problems of using each of the types?Here are some first thoughts:
u64
: what we currently have. Changing it would probably introduce some bugs to track down.i64
: more expressive range; a type that actually exists in SQL.timestamp
: less friction with SQL queries, but more painful runtime compute (comparisons at the heart of DD).Are there other candidates or considerations?
Beta Was this translation helpful? Give feedback.
All reactions