[
https://issues.apache.org/jira/browse/IOTDB-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiangdong Huang reassigned IOTDB-636:
-------------------------------------
Assignee: Xiangdong Huang
> Grafana connector does not use correct time unit
> ------------------------------------------------
>
> Key: IOTDB-636
> URL: https://issues.apache.org/jira/browse/IOTDB-636
> Project: Apache IoTDB
> Issue Type: Bug
> Components: grafna
> Affects Versions: 0.9.0, 0.9.1, 0.9.2
> Reporter: Xiangdong Huang
> Assignee: Xiangdong Huang
> Priority: Major
> Labels: pull-request-available
>
> On rel/0.9, the grafana connector uses the time unit like this:
> {code:java}
> // code placeholder
> @Autowired
> public BasicDaoImpl(JdbcTemplate jdbcTemplate) {
> this.jdbcTemplate = jdbcTemplate;
> Properties properties = new Properties();
> String tsPrecision = properties.getProperty("timestamp_precision", "ms");
> switch (tsPrecision) {
> case "us":
> TIMESTAMP_RADIX = 1000;
> break;
> case "ns":
> TIMESTAMP_RADIX = 1000_000;
> break;
> default:
> TIMESTAMP_RADIX = 1;
> }
> logger.info("Use timestamp precision {}", tsPrecision);
> }
> {code}
> That is to say, it always is "ms"! No configuration file is read!
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)