I'm trying to save dateframe in table hive,:
.toDF()
.repartition($"col", $"col2", $"col3", $"col4")
.write
.format("parquet")
.mode(saveMode)
.partitionBy("col", "col2", "col3", "col4")
.saveAsTable("db.bloc_views")
But i get this error.
The format of the existing table project_bsc_dhr.bloc_views is `HiveFileFormat`. It doesn't match the specified format `ParquetFileFormat`.;
org.apache.spark.sql.AnalysisException: The format of the existing table project_bsc_dhr.bloc_views is `HiveFileFormat`. It doesn't match the specified format `ParquetFileFormat`.;