Closed yw-yang closed 5 years ago
It seems like a Hive issue.
Definitely a bit confusing and Hive version dependent.
https://issues.apache.org/jira/plugins/servlet/mobile#issue/HIVE-14909
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-RenameTable On Nov 7, 2018, 01:09 -0800, Guangning Yu notifications@github.com, wrote:
It seems like a Hive issue. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@yw-yang can this be closed? Doesn't seem to be an Eddie issue.
Yes, it's a spark/hive issue. I did some tests again and found this issue only happens when hive table is created by spark. Close now as not related to smv.
df.write.saveAsTable("test")
alter table test rename to test_2;
spark.sql("select * from test_2")
I encountered an issue when reading hive input:
I checked create statement of table B and found SERDEPROPERTIES still points to A and LOCATION points to B.
After I reset SERDEPROPERTIES path value, issue has been solved.
ALTER TABLE table_name SET SERDEPROPERTIES ('path' = 'hdfs:///user/hive/warehouse/db/B');
Any ideas why it happens? Hive version - 1.1.0-cdh5.12.2.