-
Notifications
You must be signed in to change notification settings - Fork 338
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
The strptime datetime parser doesn't support %s #3556
Comments
Also, I'd love to have a sandbox in the UI for people to copy and paste their stuff and get visual feedback of how it is interpreted by quickwit. |
Ok so after investigating, ideally this means adding support for "%s" in time-fmt. Just to be sure, can you confirm that your data is fed as a JsonString (as opposed to JsonNumber) |
I believe it is a JsonNumber. My data looks like this in its raw form I now realise that this is actually also beyond millisecond resolution too which is unclear to me if I am wondering if perhaps it would be more appropriate to add a further datetime type This is not something I had truly considered the repercussions of before now as I thought every json library would respect them being doubles, and in practice most do, but this is where I am at. As quickwit sees wider adoption I can see more people ending up in this scenario and instead of saying "you should just use ints" I believe it would be better to give guidance along the lines of "you really shouldn't use floats because xyz but if you really want to you can use unix_timestamp_f64". |
Closed via #3639. |
Data I want to ingest has ended up with timestamps formatted as
seconds.milliseconds
eg1686764678.9197
. I could transform these into ints however for large volumes of data that can be painful. I would instead like to parse it using the strptime parser via"%s.%f"
however it doesn't recognise%s
(a unix timestamp in seconds).The text was updated successfully, but these errors were encountered: