You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by 赵海兵 <zh...@hashkeytech.com.INVALID> on 2022/11/01 06:58:43 UTC

Doris Decimal 精度问题

Hi,

我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。

我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?

Thanks
Tommy Zhao


Re: Doris Decimal 精度问题

Posted by Gabriel Lee <ga...@gmail.com>.
Hi 明心,

如你所说,Doris目前的DECIMAL类型最多只支持9位小数,所以暂时无法支持更高精度的DECIMAL需求。

不过,Doris社区现在*正在*研发新的DECIMAL类型以支撑*更高的精度需求*以及*更高的性能要求*。这个新类型可能会在1.2的下一个版本(maybe
*1.3*)达到公测状态。新的类型预期支持*最高38位*的小数宽度。

Best,
Gabriel

On Tue, 1 Nov 2022 at 17:12, 明心 <45...@qq.com.invalid> wrote:

> &nbsp; &nbsp;整数和小数分开存哈!
>
>
> 明心
> 45483483@qq.com
>
>
>
> &nbsp;
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "dev"
>                                                                 <
> zhaohaibin@hashkeytech.com.INVALID&gt;;
> 发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
> 收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;
>
> 主题:&nbsp;Doris Decimal 精度问题
>
>
>
> Hi,
>
> 我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18,
> 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。
>
> 我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?
>
> Thanks
> Tommy Zhao

回复: Re:回复: Re:回复:Doris Decimal 精度问题

Posted by 赵海兵 <zh...@hashkeytech.com.INVALID>.
Get it. Thanks.

Tommy Zhao

从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送

发件人: Mingyu Chen<ma...@163.com>
发送时间: 2022年11月2日 12:10
收件人: dev@doris.apache.org<ma...@doris.apache.org>
主题: Re:回复: Re:回复:Doris Decimal 精度问题

[You don't often get email from morningman@163.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This email originated outside of Hashkey. Take extra caution before performing any action.
警告:此电子邮件源自Hashkey外部,在执行任何操作之前请格外小心。


StarRocks is a fork of Apache Doris since Doris v0.13, not a "upgraded version" of Doris.

And now they are 2 separate products that are not related.


As I said, the new implementation of Decimal type will support max to 38, expecting release this end of year.
You can make your choice according to your actual needs.



--

此致!Best Regards
陈明雨 Mingyu Chen

Email:
morningman@apache.org





在 2022-11-02 11:17:39,"赵海兵" <zh...@hashkeytech.com.INVALID> 写道:
>Hi 大神们,
>
>StarRocks 是不是doris的升级版? 最新的StartRocks Deciaml 是支持[1, 38]的,是不是直接使用StartRocks?
>
>Best Regards
>Tommy Zhao
>
>Email:
>214277706@qq.com<ma...@qq.com>
>
>发件人: Mingyu Chen<ma...@163.com>
>发送时间: 2022年11月1日 17:48
>收件人: dev@doris.apache.org<ma...@doris.apache.org>
>主题: Re:回复:Doris Decimal 精度问题
>
>[You don't often get email from morningman@163.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
>Caution: This email originated outside of Hashkey. Take extra caution before performing any action.
>警告:此电子邮件源自Hashkey外部,在执行任何操作之前请格外小心。
>
>
>Currently, Doirs only support decimal with max to 27.
>The new implementation of Decimal type will support max to 38, expecting release this end of year.
>
>
>
>
>--
>
>此致!Best Regards
>陈明雨 Mingyu Chen
>
>Email:
>morningman@apache.org
>
>
>
>
>
>在 2022-11-01 17:11:43,"明心" <45...@qq.com.INVALID> 写道:
>>&nbsp; &nbsp;整数和小数分开存哈!
>>
>>
>>明心
>>45483483@qq.com
>>
>>
>>
>>&nbsp;
>>
>>
>>
>>
>>------------------&nbsp;原始邮件&nbsp;------------------
>>发件人:                                                                                                                        "dev"                                                                                    <zhaohaibin@hashkeytech.com.INVALID&gt;;
>>发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
>>收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;
>>
>>主题:&nbsp;Doris Decimal 精度问题
>>
>>
>>
>>Hi,
>>
>>我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。
>>
>>我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?
>>
>>Thanks
>>Tommy Zhao
>


Re:回复: Re:回复:Doris Decimal 精度问题

Posted by Mingyu Chen <mo...@163.com>.
StarRocks is a fork of Apache Doris since Doris v0.13, not a "upgraded version" of Doris.

And now they are 2 separate products that are not related.


As I said, the new implementation of Decimal type will support max to 38, expecting release this end of year.
You can make your choice according to your actual needs.



--

此致!Best Regards
陈明雨 Mingyu Chen

Email:
morningman@apache.org





在 2022-11-02 11:17:39,"赵海兵" <zh...@hashkeytech.com.INVALID> 写道:
>Hi 大神们,
>
>StarRocks 是不是doris的升级版? 最新的StartRocks Deciaml 是支持[1, 38]的,是不是直接使用StartRocks?
>
>Best Regards
>Tommy Zhao
>
>Email:
>214277706@qq.com<ma...@qq.com>
>
>发件人: Mingyu Chen<ma...@163.com>
>发送时间: 2022年11月1日 17:48
>收件人: dev@doris.apache.org<ma...@doris.apache.org>
>主题: Re:回复:Doris Decimal 精度问题
>
>[You don't often get email from morningman@163.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
>Caution: This email originated outside of Hashkey. Take extra caution before performing any action.
>警告:此电子邮件源自Hashkey外部,在执行任何操作之前请格外小心。
>
>
>Currently, Doirs only support decimal with max to 27.
>The new implementation of Decimal type will support max to 38, expecting release this end of year.
>
>
>
>
>--
>
>此致!Best Regards
>陈明雨 Mingyu Chen
>
>Email:
>morningman@apache.org
>
>
>
>
>
>在 2022-11-01 17:11:43,"明心" <45...@qq.com.INVALID> 写道:
>>&nbsp; &nbsp;整数和小数分开存哈!
>>
>>
>>明心
>>45483483@qq.com
>>
>>
>>
>>&nbsp;
>>
>>
>>
>>
>>------------------&nbsp;原始邮件&nbsp;------------------
>>发件人:                                                                                                                        "dev"                                                                                    <zhaohaibin@hashkeytech.com.INVALID&gt;;
>>发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
>>收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;
>>
>>主题:&nbsp;Doris Decimal 精度问题
>>
>>
>>
>>Hi,
>>
>>我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。
>>
>>我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?
>>
>>Thanks
>>Tommy Zhao
>

回复: Re:回复:Doris Decimal 精度问题

Posted by 赵海兵 <zh...@hashkeytech.com.INVALID>.
Hi 大神们,

StarRocks 是不是doris的升级版? 最新的StartRocks Deciaml 是支持[1, 38]的,是不是直接使用StartRocks?

Best Regards
Tommy Zhao

Email:
214277706@qq.com<ma...@qq.com>

发件人: Mingyu Chen<ma...@163.com>
发送时间: 2022年11月1日 17:48
收件人: dev@doris.apache.org<ma...@doris.apache.org>
主题: Re:回复:Doris Decimal 精度问题

[You don't often get email from morningman@163.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This email originated outside of Hashkey. Take extra caution before performing any action.
警告:此电子邮件源自Hashkey外部,在执行任何操作之前请格外小心。


Currently, Doirs only support decimal with max to 27.
The new implementation of Decimal type will support max to 38, expecting release this end of year.




--

此致!Best Regards
陈明雨 Mingyu Chen

Email:
morningman@apache.org





在 2022-11-01 17:11:43,"明心" <45...@qq.com.INVALID> 写道:
>&nbsp; &nbsp;整数和小数分开存哈!
>
>
>明心
>45483483@qq.com
>
>
>
>&nbsp;
>
>
>
>
>------------------&nbsp;原始邮件&nbsp;------------------
>发件人:                                                                                                                        "dev"                                                                                    <zhaohaibin@hashkeytech.com.INVALID&gt;;
>发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
>收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;
>
>主题:&nbsp;Doris Decimal 精度问题
>
>
>
>Hi,
>
>我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。
>
>我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?
>
>Thanks
>Tommy Zhao


Re:回复:Doris Decimal 精度问题

Posted by Mingyu Chen <mo...@163.com>.
Currently, Doirs only support decimal with max to 27.
The new implementation of Decimal type will support max to 38, expecting release this end of year.




--

此致!Best Regards
陈明雨 Mingyu Chen

Email:
morningman@apache.org





在 2022-11-01 17:11:43,"明心" <45...@qq.com.INVALID> 写道:
>&nbsp; &nbsp;整数和小数分开存哈!
>
>
>明心
>45483483@qq.com
>
>
>
>&nbsp;
>
>
>
>
>------------------&nbsp;原始邮件&nbsp;------------------
>发件人:                                                                                                                        "dev"                                                                                    <zhaohaibin@hashkeytech.com.INVALID&gt;;
>发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
>收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;
>
>主题:&nbsp;Doris Decimal 精度问题
>
>
>
>Hi,
>
>我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。
>
>我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?
>
>Thanks
>Tommy Zhao

回复:Doris Decimal 精度问题

Posted by 明心 <45...@qq.com.INVALID>.
&nbsp; &nbsp;整数和小数分开存哈!


明心
45483483@qq.com



&nbsp;




------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <zhaohaibin@hashkeytech.com.INVALID&gt;;
发送时间:&nbsp;2022年11月1日(星期二) 下午2:58
收件人:&nbsp;"dev@doris.apache.org"<dev@doris.apache.org&gt;;

主题:&nbsp;Doris Decimal 精度问题



Hi,

我们在把mysql的关于报表类的table迁移到doris中去,现在遇到decimal的精度问题,doris现在支持的decimal是 [18, 9], 我们在mysql中的decimal是[20,20]的精度,doris不支持20位的小数。

我们的业务场景确实是需要20位的小数,所以我问一下doris有没有什么好的方法来解决这个问题?

Thanks
Tommy Zhao