[SPARK-3007][SQL]Add "Dynamic Partition" support to Spark Sql hive

a new PR base on new master.  changes are the same as https://github.com/apache/spark/pull/1919
Also does this assume that the partitions columns are the prefix of the row?  If so that should be clearly documented.