RE: trouble with type casting

2016-10-28 Thread Anton Solovev
I agree with you, Fabian. I will add a small hint in exception and cast bigDecimal manually in test cases -Original Message- From: Fabian Hueske [mailto:fhue...@gmail.com] Sent: Friday, October 28, 2016 7:17 PM To: dev@flink.apache.org Subject: Re: trouble with type casting Hi Anton

Re: trouble with type casting

2016-10-28 Thread Fabian Hueske
Hi Anton, it seems that the Table API validation is more strict than Calcite's SQL validator (maybe because it is not aware of the actual implementation). In principle, it is correct to prevent the auto-casting from BigDecimal to double. I think it is fine to request an explicit cast from users (