-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding.timestamp_format=”unix“ store up nanosecond ! #16444
Comments
Thanks @FengZh61 ! Can you clarify the output format you want? Do you want an unsigned integer that represents the number of nanoseconds since the Unix epoch? For example: Either way I think this will need to be a new encoding timestamp format to preserve compatibility. |
@jszwedko Just an idea. Instead of inventing a new encoding timestamp format with backward compatibility, we can think about a tool that performs config migration from an old to a new format (and back if we are going to support rollbacks). Maybe, it would be easier to use in the long term. |
Yeah, that is a good idea. I know there are other tools that do that (like In this case I think we'd actually want to support both in perpetuity rather than deprecating and removing certain behavior. |
I want it to be a float with partial seconds appearing after the . like 1676462587.000000! |
Agree with your idea! |
Closed by #18817 |
A note for the community
Use Cases
.timestamp, err = to_float(.timestamp) can store up to nanosecond resolution!
encoding.timestamp_format="unix" store up to second resolution!
I need to use remap for that!
Sink can’t store up nanosecond
Attempted Solutions
.timestamp, err = to_float(.timestamp) can store up to nanosecond resolution!
Proposal
encoding.timestamp_format="unix" store up to nanosecond resolution!
References
#16206
Version
vector 0.27.0 (x86_64-unknown-linux-musl 5623d1e 2023-01-18)
The text was updated successfully, but these errors were encountered: