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

the detail please refer the comment of https://issues.apache.org/jira/browse/SPARK-3007
Remove the comment and put `dynamicPartNum += 1` and `key -> ""` in two separate lines (without braces).