- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to update Hive row with JOIN
Created ‎01-25-2016 08:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to port the following SQL statement to Hive from Sybase. What is the best approach to get the below to work in Hive? Hive DML UPDATE syntax doesn't mention support for JOINs or nested SELECT statements.
UPDATE table1 SET table1.column1 = table2.column1, table1.column10 = table2.column10 FROM table1, table2 WHERE table1.columnID = table2.columnID
After enabling transactional=true on table1 the above produces an error:
Error while compiling statement: FAILED: ParseException ... missing EOF at 'FROM' ...
Created ‎01-25-2016 09:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This not supported and there is no efficient way to do this. This will be handled once support for MERGE statement is added
Created ‎01-25-2016 09:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This not supported and there is no efficient way to do this. This will be handled once support for MERGE statement is added
Created ‎03-06-2016 11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I'll watch this JIRA for progress: https://issues.apache.org/jira/browse/HIVE-10924
