Skip to content

Conversation

@yhuai
Copy link
Contributor

@yhuai yhuai commented Jun 18, 2016

What changes were proposed in this pull request?

This PR adds the static partition support to INSERT statement when the target table is a data source table.

How was this patch tested?

New tests in InsertSuite

Row(17, 18, 19, 20) ::
Row(21, 22, 23, 24) ::
Row(25, 26, 27, 28) :: Nil
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need this test for hive format tables. I will add that in a separate PR.

@SparkQA
Copy link

SparkQA commented Jun 18, 2016

Test build #60737 has finished for PR 13746 at commit f012fc7.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jun 18, 2016

This is ok for 2.0, but for something like this we should write it in a way so the rewriting logic can be unit tested without end-to-end suites.

@rxin
Copy link
Contributor

rxin commented Jun 18, 2016

Actually can you try do it in this? I worry similar to past pull requests we will never revisit and the code will just look like this 2 years from now.

// dynamic_partitioning_columns are partitioning columns that do not assigned
// values in the PARTITION clause (e.g. c in the above example).
case i @ logical.InsertIntoTable(
l @ LogicalRelation(t: HadoopFsRelation, _, _), parts, query, overwrite, false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l is a bad name to use

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and don't use t or i here either ...

@SparkQA
Copy link

SparkQA commented Jun 18, 2016

Test build #60760 has finished for PR 13746 at commit b1adc7a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yhuai
Copy link
Contributor Author

yhuai commented Jun 19, 2016

Closing this. #13769 is the new version.

@yhuai yhuai closed this Jun 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants