We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7027710 commit 14a7f67Copy full SHA for 14a7f67
server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java
@@ -534,7 +534,7 @@ public boolean isDataStreamTimestampFieldEnabled() {
534
* If this mapping contains a timestamp field that is of type date, has doc values, and is either indexed or uses a doc values
535
* skipper, this returns the field type for it.
536
*/
537
- public DateFieldType getTimestampFieldType() {
+ public @Nullable DateFieldType getTimestampFieldType() {
538
final MappedFieldType mappedFieldType = fieldTypesLookup().get(DataStream.TIMESTAMP_FIELD_NAME);
539
if (mappedFieldType instanceof DateFieldType dateMappedFieldType) {
540
IndexType indexType = dateMappedFieldType.indexType();
0 commit comments