I have two tables which are using ORC compression and am using TEZ as execution engine. Table_a contains more than 900k records and table_b contains 17 million records. This query taking longer time I have waited for 2 days but the query execution was not completed. what am I doing wrong in this query.
select min(up.id) as comp002uniqueid, min(cp.product_id) as p_id
from
(select * from table_a where u_id is null) up , table_b cp
where cp.title like concat('% ',up.productname,' %')
group by up.productname;