Hi all, I am wondering if anybody would some other ideas regarding this proposal ?
In fact, I think this is customization is really beneficial since different systems have their own type rules. Allowing this customization to happen can really help calcite work with other systems. On Mon, Jan 11, 2016 at 11:55 AM, Hsuan Yi Chu <[email protected]> wrote: > Hi all, > Since Calcite has been used as planners for many projects, each with its > own definition of flexibility, I am thinking if we could make > type-check-mechanism plugable? > > For the first example, currently, the following filter will trigger > exception: > > col - to_timestamp('XXXX-XX-XX XX:XX:XX','YYYY-MM-dd HH:mm:ss') < interval 'X > XX:XX:X' day to second > > => Cannot apply '-' to arguments of type '<ANY> - <TIMESTAMP(0)> > > > > Another example is cast function, where less type conversion is allowed in > calcite than in Drill or MS-SQL. > > Please let me know if this proposal makes sense. >
