Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

impala udf structure types


impala udf structure types

New Contributor

Is it possible to define structure types for udfs? ( Or what will be the best way to return several double numbers from udf?


Re: impala udf structure types

Master Collaborator

I'm afraid complex types, e.g., structs are currently not supported as UDF return or argument types.


As a workaround you could try the following solutions:

- pack the two doubles into a DECIMAL(38,0) or STRING

- you'll need a second UDF to unpack the individual doubles