Kontext Copilot - An AI-powered assistant for data analytics that runs on your local computer. Learn more
Get started
Hive - Rename Table
insights Stats
warning Please login first to view stats information.
Raymond
Code Snippets & Tips
Code snippets and tips for various programming languages/frameworks. All code examples are under MIT or Apache 2.0 license unless specified otherwise.
Hive supports renaming tables with/without moving data folder. For a managed table that is created without LOCATION clause, the command will also move the table's HDFS location.
Code snippet
You can use the following code snippet to rename tables.
ALTER TABLE table_name RENAME TO new_table_name;
copyright
This page is subject to Site terms.
comment Comments
No comments yet.