Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Hive:Transpose the set of rows
Labels:
- Labels:
-
Apache Hive
Expert Contributor
Created ‎12-12-2016 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to achieve the following with inbuilt UDF in Hive?
1 | 35 |
2 | 22 |
3 | 45 |
4 | 64 |
To
1 | 2 | 3 | 4 |
35 | 22 | 45 | 64 |
1 ACCEPTED SOLUTION
Guru
Created ‎12-12-2016 07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no out-of-the box UDF to do this in Hive. You need to build it yourself using Hive's map function. Examples:
1 REPLY 1
Guru
Created ‎12-12-2016 07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no out-of-the box UDF to do this in Hive. You need to build it yourself using Hive's map function. Examples:
