Minus query in HIVE -


minus query seems not work in hive.

tried ex:

select x abc  minus  select x bcd ;  

am doing wrong or minus query isn't defined hive? if so, there other way result this?

it not appear hql supports minus operator. see relevant, albeit bit old, resource:

http://www.quora.com/apache-hive/what-are-the-biggest-feature-gaps-between-hiveql-and-sql

what want can done left join or not exists:

select x abc left join bcd on abc.x = bcd.x bcd.x null 

edit: per comments below, not exists not supported.

select x  abc not exists (select x bcd) 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -