hadoop - Error while using FROM_UNIXTIME(UNIX_TIMESTAMP() in Hive -
i trying run function current date in hive getting following error:
error while compiling statement: failed: semanticexception no valid privileges required privileges query: server=server1->db=_dummy_database->table=_dummy_table->action=select;
i have searched online , being suggested following functions current date in hive giving same error:
select from_unixtime(unix_timestamp()); --/selecting current time stamp/ select current_date; --/selecting current date/ select current_timestamp; --/selecting current time stamp/
but showing error if run them given.
right answers: 1. select from_unixtime(unix_timestamp()); - works impala
- select from_unixtime(unix_timestamp()) any_table_name; - works in hive
note: must use clause any_table_name present in database hive
Comments
Post a Comment