You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/02/24 03:19:49 UTC
[GitHub] [skywalking] Lovnx opened a new issue #4406: Why use long type
instead of date type?
Lovnx opened a new issue #4406: Why use long type instead of date type?
URL: https://github.com/apache/skywalking/issues/4406
ES index `segment-xxx` data structure is:
```
{
"mapping": {
"properties": {
"data_binary": {
"type": "binary"
},
"end_time": {
"type": "long"
},
"endpoint_id": {
"type": "integer"
},
"endpoint_name": {
"type": "keyword",
"copy_to": [
"endpoint_name_match"
]
},
"endpoint_name_match": {
"type": "text",
"analyzer": "oap_analyzer"
},
"is_error": {
"type": "integer"
},
"latency": {
"type": "integer"
},
"segment_id": {
"type": "keyword"
},
"service_id": {
"type": "integer"
},
"service_instance_id": {
"type": "integer"
},
"start_time": {
"type": "long"
},
"time_bucket": {
"type": "long"
},
"trace_id": {
"type": "keyword"
},
"version": {
"type": "integer"
}
}
}
}
```
notice: `start_time` & `end_time` use long type, but Date type can also stores timestamp of long type data, and Date type is more intuitive! why?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng closed issue #4406: Why use long type instead
of date type?
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4406: Why use long type instead of date type?
URL: https://github.com/apache/skywalking/issues/4406
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4406: Why use long type
instead of date type?
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4406: Why use long type instead of date type?
URL: https://github.com/apache/skywalking/issues/4406#issuecomment-590175219
All date type data in the SkyWalking has been formatted as a long, it is better in read and using, such as, we could use different range to cover different precision.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services