Best unofficial Apache Server developers community |
|
How can I do sub-selections in Hive? I think I might be making a really obvious mistake that's not so obvious to me... Here are my three source tables:
...and what I want to do is insert the result into a result table like this:
...where column 1 is the URL, column 3 is the top 1 "event" per URL, and column 5 is the top 1 REMOTE_ADDRESS to visit that URL. (Even columns are "count"s of the previous column.) Soooooo... what did I do wrong here?
Thank you so much :)
posted via StackOverflow
|
|
 
|
http://wiki.apache.org/hadoop/Hive/LanguageManual/SubQueries
You can't use a subquery as a 'column' in Hive. To work around this you'll want to use that subquery in a FROM clause and
Check out http://wiki.apache.org/hadoop/Hive/LanguageManual/Joins for more information on using JOINs in Hive. |