OpenHouse <-> Iceberg Compatibiltiy Test Infra #218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
Add SPI interfaces for external catalog compatibility testing
Description
This PR introduces Service Provider Interface (SPI) support that allows external catalog implementations (like OpenHouse, Polaris, Unity Catalog, etc.) to plug into Iceberg's test suite without modifying Iceberg source code.
Motivation
External catalog implementations need to validate Iceberg spec compliance by running Iceberg's own tests. Currently, this requires either:
This PR enables a fourth option: inject external catalogs via SPI and run Iceberg's tests unmodified.
New SPI Interfaces
TestTableProvidercore/src/test/java/TestCatalogProviderspark/v3.5/spark/src/test/java/TestSparkSessionProviderspark/v3.5/spark/src/test/java/Modified Test Infrastructure
TableTestBase: Discovers and uses externalTestTableProvidervia SPI or system propertyTestBase: Discovers and uses externalTestSparkSessionProvidervia SPITestBaseWithCatalog: Discovers and uses externalTestCatalogProvidervia SPICatalogTestBase: Respectsiceberg.test.catalog.skip.defaultsto exclude default catalogsNew Gradle Configuration
spark/openhouse.gradle: Shared compatibility test task configuration (reusable template)build.gradle:openhouseCompatibilityaggregate task demonstrating usageUsage Example
External catalogs can implement the SPI interfaces and register them via
META-INF/services/:# Run Iceberg tests against an external catalog ./gradlew :iceberg-spark:iceberg-spark-3.5_2.12:openhouseCompatibilityTest \ :iceberg-core:openhouseCompatibilityTest \ -PopenhouseCompatibilityCoordinate=com.example:my-catalog-fixtures:1.0:uberKey Design Decisions
Test Coverage
This infrastructure has been validated with OpenHouse, running 860+ Iceberg tests including:
TestWapWorkflow(WAP commit workflows)TestFastAppend,TestMergeAppend(append operations)TestOverwrite,TestReplacePartitions(overwrite operations)TestTransaction(multi-operation transactions)TestDeleteFrom,TestPartitionedWrites(Spark SQL tests)Breaking Changes
None. All changes are additive and backward-compatible.