Does Hive have something equivalent to DUAL?

jbreed picture jbreed · Mar 20, 2012 · Viewed 33.4k times · Source

I'd like to run statements like

SELECT date_add('2008-12-31', 1) FROM DUAL

Does Hive (running on Amazon EMR) have something similar?

Answer

Harikrishnan Ck picture Harikrishnan Ck · Apr 24, 2015

Best solution is not to mention table name.

select 1+1;

Gives the result 2. But poor Hive need to spawn map reduce to find this!