Hi, I am using following. so table.select("sf(col1) as sfc")So to me it seems that scalar function is very expensive so if I have 10 columns and the computation is expensive it will do 10 times. Thats why I thought maybe there is a better way to return pojo from scalar function rather than what I have been using. If this is the best way then I wonder if scalar functions should be used to return single value only. |
Hi Darshan, What you observe is the result of what's supposed to be an optimization. By fusing the two select() calls, we reduce the number of operators in the resulting plan (one MapFunction less).2018-03-30 22:07 GMT+02:00 Darshan Singh <[hidden email]>:
|
Thanks Fabian We are going to replace all scalar functions with the table functions.On Wed, Apr 4, 2018 at 12:16 PM, Fabian Hueske <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |