Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6361] feat(paimon):Support specifying primary keys during create paimon table by flink #6362

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hdygxsj
Copy link
Contributor

@hdygxsj hdygxsj commented Jan 23, 2025

What changes were proposed in this pull request?

Support specifying primary keys during create paimon table by flink

Why are the changes needed?

Fix: #6361

Does this PR introduce any user-facing change?

None

How was this patch tested?

Add testCreateTableWithPrimaryKey case in org.apache.gravitino.flink.connector.integration.test.FlinkCommonIT

@hdygxsj hdygxsj closed this Jan 23, 2025
@hdygxsj hdygxsj reopened this Jan 24, 2025
@@ -280,6 +281,69 @@ public void testCreateSimpleTable() {
supportDropCascade());
}

@Test
@EnabledIf("supportTableOperation")
public void testCreateTableWithPrimaryKey() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm afraid Hive or Iceberg doesn't support Specifying Primary key. maybe we could move this test to Paimon IT only.

@@ -28,6 +28,7 @@ dependencies {
implementation(project(":common"))
implementation(project(":core"))
implementation(project(":server-common"))
implementation(libs.mysql.driver)
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this, Gravitino server doesn't rely on mysql.

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.

[Subtask] Support specifying primary keys during create paimon table by flink
2 participants