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 <research...@gmail.com> wrote: > 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 returning multiple rows for > each input row. Does anyone know if UDF framework can support that? > > On Tue, Jan 16, 2018 at 6:07 PM, Krishna <research...@gmail.com> wrote: > >> 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/LanguageMa >> nual+LateralView)? >> >> Does UDF framework in Phoenix allow for building such functions? >> > >