I am trying to to something like the following in Hive
set TODAY="2013-11-04"; //this works
SET TODAY = to_date(from_unixtime(unix_timestamp())); //this does not..
set TODAY; TODAY=to_date(from_unixtime(unix_timestamp()))
Any suggestions?
I am trying to to something like the following in Hive
set TODAY="2013-11-04"; //this works
SET TODAY = to_date(from_unixtime(unix_timestamp())); //this does not..
set TODAY; TODAY=to_date(from_unixtime(unix_timestamp()))
Any suggestions?
This is not available in Hive. What you can do is
Now in the file fileName.sql you will see
The file fileName.sql need to be loaded before running the other dependent queries. That you can do by this:
You file hiveQueries.sql should contain something like this:
Hope this helps..:)