티스토리 뷰

공부

[Hive] rename

승가비 2020. 11. 23. 03:22
728x90
ALTER TABLE db_name.test_1 RENAME TO db_name.test_2;

https://stackoverflow.com/questions/35963498/how-to-rename-a-hive-table-without-changing-location

 

How to rename a hive table without changing location?

Based on the Hive doc below: Rename Table ALTER TABLE table_name RENAME TO new_table_name; This statement lets you change the name of a table to a different name. As of version 0.6, a rename on a

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Java] String.matches("stores.*store");  (0) 2020.11.23
[Apache] logrotate  (0) 2020.11.23
[SQL] DROP TABLE IF EXISTS `table_name`  (0) 2020.11.23
[Spark] RDD cache() & persist()  (0) 2020.11.21
[Java] Calendar  (0) 2020.11.21
댓글