-
Notifications
You must be signed in to change notification settings - Fork 64
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
parse_timestamp Invalid timestamp error #790
Comments
Thanks @DimDroll . We are using a library to do the parsing here so any fix would likely need to be upstream in https://github.com/chronotope/chrono. |
Thank you @jszwedko , I dug a little and found similar case reported earlier: It seems like you raised this case with chrono in the past and it had been worked on recently, I summarized related links and cautiously asked in the following thread if there is a progress planned: In the meantime will stick with aforementioned workaround. |
Just as a note, workaround will be:
However, I will keep this open as parse_timestamp is supposed to support it as well. @jszwedko please share if it make sense for the long-term? |
That works too. |
A note for the community
Problem
Hello,
We have a case when we need to parse nanoseconds timestamp like 1712312062676735437 using parse_timestamp function:
.2_timestamp = parse_timestamp!("1712312062676735437", "%s%f")
Which gives error:
The workaround is to add space in between timestamp and nanoseconds part:
.4_timestamp = parse_timestamp!("1712312062 676735437", "%s %f")
Following is VRL code that can be executed in playground:
I assume same happens during real-time run.
Configuration
No response
Version
VRL Version: 0.13.0
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: