You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/09/12 04:31:51 UTC
[skywalking] branch master updated: Fix that `sortMetrics` should
only return `long` not `double` (#7698)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new b20f121 Fix that `sortMetrics` should only return `long` not `double` (#7698)
b20f121 is described below
commit b20f121e64920acd4daf8dc368138c63ce1bbb0f
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sun Sep 12 12:31:42 2021 +0800
Fix that `sortMetrics` should only return `long` not `double` (#7698)
---
docs/en/setup/backend/log-analyzer.md | 2 +-
.../storage/plugin/elasticsearch/query/AggregationQueryEsDAO.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/en/setup/backend/log-analyzer.md b/docs/en/setup/backend/log-analyzer.md
index 103e080..71aaeb6 100644
--- a/docs/en/setup/backend/log-analyzer.md
+++ b/docs/en/setup/backend/log-analyzer.md
@@ -57,7 +57,7 @@ Log framework config examples:
module](https://docs.python.org/3/library/logging.html) with functionalities aligning with the Java toolkits.
To explore how to enable the reporting features for your use cases, please refer to the
-[Log Reporter Doc](https://github.com/apache/skywalking-python/blob/master/docs/LogReporter.md) for a detailed guide.
+[Log Reporter Doc](https://github.com/apache/skywalking-python/blob/master/docs/en/setup/advanced/LogReporter.md) for a detailed guide.
## Log Analyzer
diff --git a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/AggregationQueryEsDAO.java b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/AggregationQueryEsDAO.java
index 2f67266..dc831b5 100644
--- a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/AggregationQueryEsDAO.java
+++ b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/AggregationQueryEsDAO.java
@@ -118,7 +118,7 @@ public class AggregationQueryEsDAO extends EsDAO implements IAggregationQueryDAO
SelectedRecord record = new SelectedRecord();
record.setId((String) termsBucket.get("key"));
Map<String, Object> value = (Map<String, Object>) termsBucket.get(valueColumnName);
- record.setValue(String.valueOf(value.get("value")));
+ record.setValue(String.valueOf(((Number) value.get("value")).longValue()));
topNList.add(record);
}