You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with a mapping like the following it is impossible to index documents with timestamp values that do not contain a trailing Z or a timezone offset:
Describe the bug
When working with a mapping like the following it is impossible to index documents with timestamp values that do not contain a trailing
Z
or a timezone offset:Possible values:
2024-06-01T13:38:18.280Z
- trailingZ
2024-06-01T13:38:18.280+04:00
- timezone offsetInvalid values:
2024-06-01T13:38:18.280
It seems like it enforces the ISO 8601 specification according to which the referenced invalid value would also be a valid value.
When using Python and
isoformat()
you can create an invalid timestamp:That may lead to confusion for OpenSearch users.
Related component
Search
To Reproduce
Field mapping:
Index command:
Expected behavior
Indexing values without a trailing Z or timezone offset should be accepted and default to either
Z
or00:00
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: