GitHub user wangyum opened a pull request: https://github.com/apache/spark/pull/18769
[SPARK-21574][SQL] Fix set hive.exec.max.dynamic.partitions lose effect. ## What changes were proposed in this pull request? How to reproduce: ```scala val data = (0 until 1001).map(i => (i, i)) spark.createDataFrame(data).toDF("c1", "c2").createOrReplaceTempView("sourceTable") spark.sql("create table targetTable(c1 int) PARTITIONED BY(c2 int)") spark.sql("set hive.exec.dynamic.partition.mode=nonstrict") spark.sql("set hive.exec.max.dynamic.partitions=1001") spark.sql("insert overwrite table targetTable partition(c2) select * from sourceTable") ``` This PR fix this issue. ## How was this patch tested? unit tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/wangyum/spark SPARK-21574 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18769.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18769 ---- commit 4bdc9ad5506a6055b9bb0b82ad4cfb1af09708c0 Author: Yuming Wang <wgy...@gmail.com> Date: 2017-07-29T10:48:02Z Fix set hive.exec.max.dynamic.partitions lose effect. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org