The format of the existing table project_bsc_dhr.bloc_views is HiveFileFormat
. It doesn't match the specified format OrcFileFormat
.;
new_df.write.mode(SaveMode.Append).format("orc").partitionBy("nd").saveAsTable("table1")
将Append改为Overwrite,先写入一部分数据,然后再改成Append