-
Notifications
You must be signed in to change notification settings - Fork 49
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
from_unix_timestamp float support #823
Labels
type: feature
A value-adding code addition that introduce new functionality.
vrl: stdlib
Changes to the standard library
Comments
jpds
added
the
type: feature
A value-adding code addition that introduce new functionality.
label
May 6, 2024
Looks like this was not intended to support floats: vrl/src/stdlib/from_unix_timestamp.rs Lines 219 to 229 in 4581a47
I've worked around this for now by doing:
|
馃憤 it makes sense to me for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type: feature
A value-adding code addition that introduce new functionality.
vrl: stdlib
Changes to the standard library
A note for the community
Use Cases
Caddy logs timestamps as floats:
"ts":1714987958.264331
- however thefrom_unix_timestamp
only takes integers.Attempted Solutions
I've worked around this by calling
to_int!(.ts)
, however it'd be nice to keep the sub-second accuracy for request order sorting.Proposal
No response
References
No response
Version
0.37.1
The text was updated successfully, but these errors were encountered: