Re: UDF for lateral views

2018-01-17 Thread James Taylor
No, this isn't supported from a UDF. You're looking for PHOENIX-4311 to be implemented. Let's continue the discussion there. On Wed, Jan 17, 2018 at 7:16 PM, Krishna wrote: > According to this blog (http://phoenix-hbase.blogspot.in/2013/04/how-to- > add-your-own-built-in-function.html), evaluate

Re: UDF for lateral views

2018-01-17 Thread Krishna
According to this blog ( http://phoenix-hbase.blogspot.in/2013/04/how-to-add-your-own-built-in-function.html), evaluate(...) is responsible for processing the input state of the row and filling up ImmutableBytesWritable pointer with transformed row. Did not find any references that'll support retur

UDF for lateral views

2018-01-16 Thread Krishna
I would like to convert a column of ARRAY data-type such that each element of the array is returned as a row. Hive supports it via Lateral Views ( https://cwiki.apache.org/confluence/display/Hive/LanguageManual+LateralView )? Does UDF framework in Phoenix allow for building such functions?