Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Sep 25, 2019

What changes were proposed in this pull request?

Don't allow calling append, overwrite, or overwritePartitions after tableProperty is used in DataFrameWriterV2 because table properties are not set as part of operations on existing tables. Only tables that are created or replaced can set table properties.

Why are the changes needed?

The properties are discarded otherwise, so this avoids confusing behavior.

Does this PR introduce any user-facing change?

Yes, but to a new API, DataFrameWriterV2.

How was this patch tested?

Removed test cases that used this method and the append, etc. methods because they no longer compile.

@rdblue
Copy link
Contributor Author

rdblue commented Sep 25, 2019

@cloud-fan, this addresses your comment: #25681 (comment)

@rdblue rdblue changed the title [SPARK-29249][SQL] DataFrameWriterV2: Don't allow tableProperty for existin… [SPARK-29249][SQL] V2 writer: Don't allow tableProperty for existing tables Sep 26, 2019
@SparkQA
Copy link

SparkQA commented Sep 26, 2019

Test build #111371 has finished for PR 25931 at commit 56b3e4e.

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

@cloud-fan cloud-fan closed this in 6a4235a Sep 26, 2019
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@rdblue
Copy link
Contributor Author

rdblue commented Sep 26, 2019

Thanks for reviewing, @cloud-fan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants