Skip to content

Conversation

@LsomeYeah
Copy link
Contributor

Purpose

Linked issue: close #xxx

In pr #4639, we had supported the core ability of migrating iceberg table to paimon table. This pr aims to:

  • supporting migration for iceberg table using hive-catalog
  • flink procedure and action for migration
  • IT cases, including tests for iceberg hadoop-catalog and hive-catalog

Up to now, you can migrate iceberg table to paimon table by invoking the corresponding procedure or action.

Tests

org.apache.paimon.hive.procedure.MigrateTableProcedureITCase#testMigrateIcebergTableProcedure
org.apache.paimon.hive.procedure.MigrateTableProcedureITCase#testMigrateIcebergTableAction

API and Format

Documentation

@xuzifu666
Copy link
Member

+1

@LsomeYeah LsomeYeah force-pushed the migrate-iceberg-hive-1 branch from d43625c to f73ecd1 Compare January 20, 2025 07:15
@tsreaper tsreaper self-requested a review February 7, 2025 09:52
Comment on lines 68 to 78
// isPartitioned, icebergIsHive, paimonIsHive, isNamedArgument
return Stream.of(
Arguments.of(true, false, false, true),
Arguments.of(false, false, false, true),
Arguments.of(true, true, false, true),
Arguments.of(false, true, false, true),
Arguments.of(true, true, false, false),
Arguments.of(false, true, false, false),
Arguments.of(true, false, true, true),
Arguments.of(true, true, true, true));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to run all combinations each time. Generate random values for each argument each time. If there is a bug, some PR will trigger it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll make it a random test.

@LsomeYeah LsomeYeah force-pushed the migrate-iceberg-hive-1 branch from 7f33534 to e8b3880 Compare February 11, 2025 06:16
…g to paimon

# Conflicts:
#	paimon-core/src/main/java/org/apache/paimon/iceberg/metadata/IcebergDataField.java
…mon table to source table if migrating success

[core] alter access permisssion of getDataTypeFromType()
# Conflicts:
#	paimon-flink/paimon-flink-common/src/main/resources/META-INF/services/org.apache.paimon.factories.Factory

# Conflicts:
#	paimon-flink/paimon-flink-common/src/main/resources/META-INF/services/org.apache.paimon.factories.Factory
@LsomeYeah LsomeYeah force-pushed the migrate-iceberg-hive-1 branch from e8b3880 to 6b84657 Compare February 13, 2025 03:14
@tsreaper tsreaper closed this Feb 13, 2025
@tsreaper tsreaper reopened this Feb 13, 2025
@tsreaper tsreaper merged commit 183ca8f into apache:master Feb 13, 2025
23 of 24 checks passed
JackeyLee007 pushed a commit to JackeyLee007/paimon that referenced this pull request Feb 14, 2025
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.

3 participants