Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept (but ignore) doc timestamps with nanosecond precision
Python's `datetime` library from the stdlib does not support nanosecond precision in `strptime` [1], but several projects do generate such data and ElasticSearch supports it. (E.g. Vault audit logs generate such timestamps.) We could use a different library to parse these timestamp, but they seem to be potentially slower than stdlib and we don't really need the precision. So this ignores any doc timestamp with too many digits (or really any characters) in the sub-second part of the timestamp. [1]: https://stackoverflow.com/questions/10611328/parsing-datetime-strings-containing-nanoseconds
- Loading branch information