Re: Scalar functions implementation

2015-07-23 Thread Alberto Rodriguez
Hi Kasper, thank you for your quick response. I was having a look at some stackoverflow threads [1][2] and was start thinking of moving to an interface solution. With your response I've got a much clear idea. [1]http://stackoverflow.com/questions/6511453/extending-a-enum-in-java [2] http://stacko

Re: Scalar functions implementation

2015-07-23 Thread Kasper Sørensen
Hi Alberto, I am thinking that this reminds me a bit of the time (some releases back) when we converted ColumnType from an enum into an interface. That change opened up a lot of doors IMO. And a similar change to the FunctionType could do the trick. What I have in mind is: * Add an interface ca

Scalar functions implementation

2015-07-23 Thread Alberto Rodriguez
Hi all, I've just started having a look at how to add scalar functions like SUBSTRING, CONCAT, UPPER... to MetaModel. I started by adding these functions to the MetaModel parser. There is already a FunctionType enum that takes care of all the aggregate functions (SUM, COUNT, AVG...) This Function