- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
phoenix delete based on joins
- Labels:
-
Apache HBase
-
Apache Phoenix
Created ‎07-21-2016 02:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to delete records on a phoenix table based on the join with another phoenix table. Is it possible?
If so can anyone provide the syntax. i dont see a direct way of doing this
Created ‎07-21-2016 05:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some join queries can be rewritten like this:-
delete from source1 where (pk1,pk2) in (select pk1,pk2 from source2);
Created ‎07-21-2016 05:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some join queries can be rewritten like this:-
delete from source1 where (pk1,pk2) in (select pk1,pk2 from source2);
Created ‎07-22-2016 04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ankit, it works. but is it the effective way if we have large number of rows. AS we are using an IN condition in the query.
