Hi,

If I don't get it wrong, KariosDB need not to create schema ahead and 
automatically inferences datatype. So there is a good chance that your `0` will 
be recognized as a long instead of a float.


Tian Jiang


| |
Tian Jiang
|
|
[email protected]
|
签名由网易邮箱大师定制
On 9/5/2019 16:13,Jialin Qiao<[email protected]> wrote:
Hi,

When I try the following java codes, it always print 0.0.

```
float a = 0f;
System.out.println(a);
a = 0.0f;
System.out.println(a);
double b = 0d;
System.out.println(b);
b = 0.0d;
System.out.println(b);
```

I think it is fine to print 0.0 in the IoTDB Client, as long as it is a float 
value (0f). I wonder how could KairosDB print 0...

Best,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

-----原始邮件-----
发件人: "勾王敏浩" <[email protected]>
发送时间: 2019-09-05 15:02:27 (星期四)
收件人: [email protected]
抄送:
主题: time series with double datatype insert problem

Hi,
Currently, we find that a time series with  DATATYPE=DOUBLE, ENCODING=GORILLA 
,when insert a datapoint like (1,0) , it returns (1,0.0). While in KairosDB, it 
returns (1,0). Do we need to modify this?


Thank you,
Wangminhao Gou

Reply via email to