-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
WIP for parsing composite patterns with Format.parseObject #40364
Conversation
Pinging @elastic/es-core-infra |
Rally results on this PR
|
rally results from master
|
master
vs PR
|
return (TemporalAccessor) object; | ||
} | ||
} | ||
throw new DateTimeParseException("Failed to parse with all parsers from a composite parser", input, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's implicit that this is a composite parser, as the format will be returned in the IAE?
return firstParser().parse(input); | ||
} | ||
|
||
private boolean parssingSucceeded(Object object, String input, ParsePosition pos) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless nit: one s
less?
e979460
to
cf76d67
Compare
Java-time fails parsing composite patterns when first pattern matches only the prefix of the input. It expects pattern in longest-shortest order. Joda does not suffer from this closes elastic#39916
remve unused method typo and message change
cf76d67
to
6ac4504
Compare
a work in progress now. making sure this would pass all the tests. The performance should be good of this:
relates #40100