Skip to content
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

Support for nanoseconds in DateFormat #2676

Closed
GewuerzRegal opened this issue Aug 21, 2023 · 2 comments · Fixed by #2684
Closed

Support for nanoseconds in DateFormat #2676

GewuerzRegal opened this issue Aug 21, 2023 · 2 comments · Fixed by #2684
Labels
type: enhancement A general enhancement

Comments

@GewuerzRegal
Copy link

Elasticsearch supports dateformats with nanoseconds, but spring data elasticsearch doesn't support this:
https://docs.spring.io/spring-data/elasticsearch/docs/current/api/org/springframework/data/elasticsearch/annotations/DateFormat.html
Could that be supported in the near future?
We need this to sort realtime events, there multiple events are inbound during the same millisecond.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 21, 2023
@sothawo
Copy link
Collaborator

sothawo commented Aug 21, 2023

@sothawo sothawo added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 21, 2023
@GewuerzRegal
Copy link
Author

Yes, for elasticsearch it's clear, that this is supported. But in spring data elastic there is no DateFormat like strict_date_optional_time_nanos so using spring the nanoseconds are rounded to milliseconds

sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this issue Sep 1, 2023
sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this issue Sep 2, 2023
sothawo added a commit that referenced this issue Sep 3, 2023
@sothawo sothawo added this to the 5.2 M3 (2023.1.0) milestone Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants