-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management teamTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv7.9.0
Description
Elasticsearch version (bin/elasticsearch --version): 7.9.0
Plugins installed: []
JVM version (java -version):
OS version (uname -a if on a Unix-like system):
Description of the problem including expected versus actual behavior:
Steps to reproduce:
Before 7.9.0, null_value could be used when defining a date:
PUT testindex1
{
"mappings": {
"properties": {
"testdate": {
"type": "date",
"null_value": "",
"format": "dd/MM/yyyy HH:mm:ss"
}
}
}
}
Output:
{
"acknowledged" : true,
"shards_acknowledged" : true,
"index" : "testindex1"
}
In 7.9.0, using the same PUT command, we get an error:
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_doc]: cannot parse empty date",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "cannot parse empty date"
}
Using null_value with a keyword as shown in the documentation does work.
Provide logs (if relevant):
Metadata
Metadata
Assignees
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management teamTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv7.9.0