Hi,

I think we can follow what Tian Jiang said to check whether KairosDB
considering it as a Long rather than a Float.

By the way, as Jialin and Julian said, I think it is ok if we print 0.0 for
Float 0.

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Tian Jiang <jt2594...@163.com> 于2019年9月5日周四 上午4:21写道:

> 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
> |
> |
> jt2594...@163.com
> |
> 签名由网易邮箱大师定制
> On 9/5/2019 16:13,Jialin Qiao<qj...@mails.tsinghua.edu.cn> 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
>
> 乔嘉林
> 清华大学 软件学院
>
> -----原始邮件-----
> 发件人: "勾王敏浩" <gwm...@mails.tsinghua.edu.cn>
> 发送时间: 2019-09-05 15:02:27 (星期四)
> 收件人: dev@iotdb.apache.org
> 抄送:
> 主题: 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