Could someone tell me what's wrong with this code? If I run the select statement only, then its returning the results.
The code is working if I remove one of the line "location" or "stored as textfile". Also please let me know if I can specify 'delimiter' too.
create table exploderesults
location '/user/cloudera/sometest'
stored as textfile
as
select id,ph as phone, ct as city from explodetest
lateral view explode(phone)p as ph
lateral view explode(city)c as ct;
Thanks