Skip to content

Migrate Scan, Schema and remaining Partition files in Core to JUnit5#10014

Merged
nastra merged 2 commits into
apache:mainfrom
tomtongue:mig-junit5-core-scan-schema-part
Mar 21, 2024
Merged

Migrate Scan, Schema and remaining Partition files in Core to JUnit5#10014
nastra merged 2 commits into
apache:mainfrom
tomtongue:mig-junit5-core-scan-schema-part

Conversation

@tomtongue
Copy link
Copy Markdown
Contributor

@tomtongue tomtongue commented Mar 21, 2024

Migrate the following test classes in iceberg-core to JUnit 5 and AssertJ style for #9085.

Current Progress

Scan

  • TestScanDataFileColumns.java
  • TestScansAndSchemaEvolution.java
  • TestScanSummary.java

Schema

  • TestSchemaAndMappingUpdate.java
  • TestSchemaID.java
  • TestSchemaUpdate.java

Other partitions

  • TestReplacePartitions.java
  • TestTableUpdatePartitionSpec.java
  • TestTimestampPartitions.java
  • TestUpdatePartitionSpec.java

@github-actions github-actions Bot added the core label Mar 21, 2024
@tomtongue tomtongue changed the title [WIP] Migrate Scan, Schema and remaining Partition files in Core to JUnit5 Migrate Scan, Schema and remaining Partition files in Core to JUnit5 Mar 21, 2024
@tomtongue
Copy link
Copy Markdown
Contributor Author

@nastra Could you review this PR when you have time?

(one more PR should be needed to complete the migration of core files in org/apache/iceberg to JUnit5)

newSchema.identifierFieldIds());
assertThat(newSchema.identifierFieldIds())
.as("remove an identifier field should succeed")
.isEqualTo(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it's fine to also use containsExactly() here (and in other places)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

okay thanks. Let me change them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will include the changes here in next PR.

@nastra nastra merged commit 59ffa33 into apache:main Mar 21, 2024
@tomtongue tomtongue deleted the mig-junit5-core-scan-schema-part branch March 21, 2024 16:52
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
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.

2 participants