Using the built-in User Defined Table Function (UDTF)
Normal functions take one row as input and provide one row as transformed output. On the other side, built-in table-generating functions take one row as input and produce multiple output rows.
How to do it…
The built-in table-generating functions could be used directly in the query. The following are some examples of the table-generating functions available in Hive:
Function Name |
Return Type |
Description |
---|---|---|
|
N rows |
It will return |
|
N rows |
It will return |
|
It is used to explode an array of | |
|
tuple |
It is used to extract a set of keys from... |