Hi, Kiril ~

For “automatically cast” do you mean the implicit type coercion ? For current 
Calcite, we do not support INT -> DECIMAL or FLOAT -> DECIMAL conversion, we 
indeed support varchar -> DECIMAL conversion,

For your example, it is ST_MakePoint(‘1.0', ‘1.0')

Best,
Danny Chan
在 2019年11月5日 +0800 AM4:41,Kirils Mensikovs <[email protected]>,写道:
> Hi,
>
> I am using ST_MakePoint(1.0, 1.0) and that works fine. However, when I try to 
> run following command ST_MakePoint(1, 1), I got exception:
> `No applicable constructor/method found for actual parameters "int, int”`
>
> How to automatically cast int to BigDecimal?
>
> Thanks,
> -Kiril

Reply via email to