You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/05/18 12:24:13 UTC

[incubator-iotdb] branch iotdb-531-master created (now b19d773)

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a change to branch iotdb-531-master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at b19d773  fix issue when grafana visualize boolean data.

This branch includes the following new commits:

     new b19d773  fix issue when grafana visualize boolean data.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: fix issue when grafana visualize boolean data.

Posted by hx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch iotdb-531-master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit b19d773d464fb4822eca1bb85caa23108cd33580
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Mon May 18 20:23:51 2020 +0800

    fix issue when grafana visualize boolean data.
---
 .../java/org/apache/iotdb/web/grafana/dao/impl/BasicDaoImpl.java   | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/grafana/src/main/java/org/apache/iotdb/web/grafana/dao/impl/BasicDaoImpl.java b/grafana/src/main/java/org/apache/iotdb/web/grafana/dao/impl/BasicDaoImpl.java
index 0cdfef5..8dabbbf 100644
--- a/grafana/src/main/java/org/apache/iotdb/web/grafana/dao/impl/BasicDaoImpl.java
+++ b/grafana/src/main/java/org/apache/iotdb/web/grafana/dao/impl/BasicDaoImpl.java
@@ -156,12 +156,7 @@ public class BasicDaoImpl implements BasicDao {
       columnName = function + "(root." + s + ")";
     }
     logger.info(sql);
-    try {
-      rows = jdbcTemplate.query(sql, new TimeValuesRowMapper(columnName));
-    } catch (Exception e) {
-      logger.error(e.getMessage());
-    }
-    return rows;
+    return jdbcTemplate.query(sql, new TimeValuesRowMapper(columnName));
   }
 
   private Long zonedCovertToLong(ZonedDateTime time) {