Member since
05-23-2016
2
Posts
0
Kudos Received
0
Solutions
05-27-2016
12:19 AM
Thank you very much for your help and your prompt reply. So perhaps creating a UDF that returns an array and then split the array can be a workaround. According to the documentation a UDF can't return a complex type but is this still true for CDH 5.5+ ? Because according to this complex types are support from cloudera now. So to summarize my question, is it possible to write a UDF that takes the comma delimited string and returns an array of strings using Impala UDFs?
... View more
05-23-2016
12:48 PM
Let's suppose we have a table: Owner | Pets ------------------------------ Jack | "dog, cat, crocodile" Mary | "bear, pig" I want to get as a result: Owner | Pets ------------------------------ Jack | "dog" Jack | "cat" Jack | "crocodile" Mary | "bear" Mary | "pig" I found some solutions to similar problems by googling, but Impala SQL does not offer any of these capabilities to apply the suggested solutions. Any help would be greatly appreciated!
... View more
Labels:
- Labels:
-
Apache Impala
-
Apache Pig