-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add formats parameter to parse_timestamp #503
Comments
Thanks @mattnthat ! Note the function already takes a |
Noted! Updated Issue title to reflect |
As per conversation on this thread
With the removal of the
to_timestamp
function, it's become harder to handle / normalise unknown timestamps in input data.The feature as suggested by @jszwedko is to extend
parse_timestamp
to accept a 'format' parameter which can be an array of timestamp formats to try to match.This puts control of the timestamp format array onto the user (vector.dev team don't have to hardcode and constantly extend acceptable formats) but gives the user a simple way to match a wide variery of timestamp formats in the incoming data.
Work around suggested in the comment thread above gives some good structure around how the feature could work:
The text was updated successfully, but these errors were encountered: