I\'m using Spark 2.4.4 to write into a 2-level partitioned external hive table (format parquet on HDFS):
CREATE EXTERNAL TABLE mytable () PARTIT