-
Notifications
You must be signed in to change notification settings - Fork 210
Bizarre day parsing issue #307
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
Comments
👍 I have replicated this on a separate machine. I have also replicated it again using |
Looks like it's your "irregular guesser" in Oh well, space-time trade-off and all, I guess. No way to fix this without impacting performance; someone was bound to hit this in the wild eventually. |
You were very unfortunate with your very sparce date vector. Lubridate has a training engine which is used to automatically recognize the formats. The training is done on a small subset of the original vector which is generated based on first 501 primes. See the internal |
No, that's alright, I have the same issues in my packages. Obviously there is no mathematical solution without inspecting the full vector that won't run into edge cases. |
You can use
At least partially, training should also be removed from |
Ok. Closing in favor of #308. |
Thanks! |
I have a very spooky dataset. It fails to parse in full on this exact set in this exact order, but parses fine in every subset / subsample I have tried.
First, notice
However, every other variation of samples I have tried parses fine...
Note that shuffling the vector or reversing it is sufficient to get
ymd
to parse the vector correctly.I understand if you don't want to look into / fix this, but it did cause a production issue. Baffling.
The text was updated successfully, but these errors were encountered: