Skip to content

Add timestamp ns literal#3298

Open
rambleraptor wants to merge 1 commit intoapache:mainfrom
rambleraptor:timestampns_literals
Open

Add timestamp ns literal#3298
rambleraptor wants to merge 1 commit intoapache:mainfrom
rambleraptor:timestampns_literals

Conversation

@rambleraptor
Copy link
Copy Markdown
Contributor

Rationale for this change

Ran into this with the type promotion rabbit hole I've found myself in.

Turns out we don't have literal types for timestamp_ns. This is definitely a missing part of being able to use timestamp_ns types.

My goal here was to match the microsecond usage as much as possible.

(There's some weirdness for converting these to strings, since Python's string format doesn't actually handle nano-seconds for us. What fun!)

Are these changes tested?

Added some tests.

Are there any user-facing changes?

  • Adds literals for timestamp_ns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant