spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dongjoon-hyun <>
Subject [GitHub] spark pull request #17106: [SPARK-19775][SQL] Remove an obsolete `partitionB...
Date Tue, 28 Feb 2017 22:52:54 GMT
GitHub user dongjoon-hyun opened a pull request:

    [SPARK-19775][SQL] Remove an obsolete `partitionBy().insertInto()` test case

    ## What changes were proposed in this pull request?
    This issue removes [a test case](
which was introduced by [SPARK-16033](
and was superseded by [SPARK-14459](
Basically, we cannot use `partitionBy` and `insertInto` together.
      test("Reject partitioning that does not match table") {
        withSQLConf(("hive.exec.dynamic.partition.mode", "nonstrict")) {
          sql("CREATE TABLE partitioned (id bigint, data string) PARTITIONED BY (part string)")
          val data = (1 to 10).map(i => (i, s"data-$i", if ((i % 2) == 0) "even" else "odd"))
              .toDF("id", "data", "part")
          intercept[AnalysisException] {
            // cannot partition by 2 fields when there is only one in the table definition
            data.write.partitionBy("part", "data").insertInto("partitioned")
    ## How was this patch tested?
    This only removes a test case. Pass the existing Jenkins test.

You can merge this pull request into a Git repository by running:

    $ git pull SPARK-19775

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17106
commit 62768180c649f77144138f4b7bcdc72cdd4f4f71
Author: Dongjoon Hyun <>
Date:   2017-02-28T22:47:03Z

    [SPARK-19775][SQL] Remove an obsolete `partitionBy().insertInto()` test case


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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message