-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Open
Labels
:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Description
Steps to expose problem:
- install Kibana's web logs sample data set.
- In Kibana 's console, run the following
GET kibana_sample_data_logs/_search
{
"docvalue_fields": [
{
"field": "@timestamp",
"format": "epoch_millis"
}
],
"size": 10,
"_source": false,
"query": {
"match_all": {}
}
}
In the response, notice how @timestamp is returned as a string instead of a number
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "kibana_sample_data_logs",
"_id" : "CrmEZm8Bs4SbvGEZjlv8",
"_score" : 1.0,
"fields" : {
"@timestamp" : [
"1576975142912"
]
}
},
{
"_index" : "kibana_sample_data_logs",
"_id" : "C7mEZm8Bs4SbvGEZjlv8",
"_score" : 1.0,
"fields" : {
"@timestamp" : [
"1576985181326"
]
}
},
The expected behavior would be to return epoch_millis as a number since its a numerical value. Javascript's Number.MAX_SAFE_INTEGER is 9007199254740991 which is approximately 285,616 years, either forward or backward, from 01 January, 1970. This should ensure that epoch_millis stored as a Java Long will not overflow a javascript number.
Metadata
Metadata
Assignees
Labels
:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch