Is there a way to change the database's table in hive or Hcatalog?
For instance, I have the table foo
in the database default
, and I want to put this table in the database bar
. I try this, but it doesn't work:
ALTER TABLE foo RENAME TO bar.foo
Thanks in advance