Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Dec 20, 2020

What changes were proposed in this pull request?

  1. Move the ALTER TABLE .. RENAME PARTITION parsing tests to AlterTableRenamePartitionParserSuite
  2. Place the v1 tests for ALTER TABLE .. RENAME PARTITION from DDLSuite to v1.AlterTableRenamePartitionSuite and v2 tests from AlterTablePartitionV2SQLSuite to v2.AlterTableRenamePartitionSuite, so, the tests will run for V1, Hive V1 and V2 DS.

Why are the changes needed?

  • The unification will allow to run common ALTER TABLE .. RENAME PARTITION tests for both DSv1 and Hive DSv1, DSv2
  • We can detect missing features and differences between DSv1 and DSv2 implementations.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running new test suites:

$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableRenamePartitionParserSuite"
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableRenamePartitionSuite"

@github-actions github-actions bot added the SQL label Dec 20, 2020
@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37701/

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37701/

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Test build #133101 has finished for PR 30863 at commit e8d2307.

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

@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 20, 2020

@cloud-fan @HyukjinKwon Please, review this PR.

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37707/

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37707/

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Test build #133107 has finished for PR 30863 at commit aa602e0.

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

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37713/

@SparkQA
Copy link

SparkQA commented Dec 20, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37713/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Test build #133114 has finished for PR 30863 at commit 6db2b3e.

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

@cloud-fan
Copy link
Contributor

@MaxGekk can you fix conflicts?

…ion-tests

# Conflicts:
#	sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
#	sql/core/src/test/scala/org/apache/spark/sql/connector/AlterTablePartitionV2SQLSuite.scala
#	sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
#	sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
createSinglePartTable(t)
sql(s"INSERT INTO $t PARTITION (id = 2) SELECT 'def'")
checkPartitions(t, Map("id" -> "1"), Map("id" -> "2"))
// TODO(SPARK-33862): Throw PartitionAlreadyExistsException
Copy link
Member Author

Choose a reason for hiding this comment

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

This PR #30866 solves the issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dongjoon-hyun merged #30866, I am going to rebase this PR on the master and try to move this test to the common v1 trait.

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Test build #133146 has finished for PR 30863 at commit 2b47331.

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

@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 21, 2020

jenkins, retest this, please

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37745/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37745/

…ion-tests

# Conflicts:
#	sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37747/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37747/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37751/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37751/

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Test build #133148 has finished for PR 30863 at commit 2b47331.

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

@SparkQA
Copy link

SparkQA commented Dec 21, 2020

Test build #133152 has finished for PR 30863 at commit b11c07b.

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

@SparkQA
Copy link

SparkQA commented Dec 22, 2020

Test build #133220 has finished for PR 30863 at commit 1284c37.

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

@SparkQA
Copy link

SparkQA commented Dec 22, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37829/

@SparkQA
Copy link

SparkQA commented Dec 22, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37829/

@SparkQA
Copy link

SparkQA commented Dec 22, 2020

Test build #133232 has finished for PR 30863 at commit 0eb89ae.

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

import org.apache.spark.sql.execution.command
import org.apache.spark.sql.internal.SQLConf

trait AlterTableRenamePartitionSuiteBase extends command.AlterTableRenamePartitionSuiteBase {
Copy link
Member

Choose a reason for hiding this comment

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

It would be helpful if you add a comment before this PR about the new hierarchy of the test suites, @MaxGekk .

Copy link
Contributor

Choose a reason for hiding this comment

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

this is a good idea. Shall we do it for all the new test suites?

Copy link
Member Author

@MaxGekk MaxGekk Dec 23, 2020

Choose a reason for hiding this comment

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

Let me do that separately for all unified test suites, and to don't block this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Let me do that separately for all unified test suites, and to don't block this PR.

Since this is merged, please proceed the comment PR, @MaxGekk .

Copy link
Member Author

Choose a reason for hiding this comment

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

Here is the PR #30929 , please, review it.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in cc23581 Dec 23, 2020
@MaxGekk MaxGekk deleted the unify-rename-partition-tests branch February 19, 2021 15:04
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