venkateshwaracholan opened a new pull request, #4602:
URL: https://github.com/apache/polaris/pull/4602
## Summary
Follow-up to #4583 and related to #4598.
Adds PostgreSQL schema-version coverage for the JDBC metastore test suite
and reduces the H2 schema matrix to the latest version only.
No production persistence behavior changes.
## What changed
* Added `AtomicMetastoreManagerWithJdbcBasePersistenceImplPostgresSchemaIT`
to run schema-version metastore tests on PostgreSQL.
* Generalized schema version discovery into `SchemaVersions`.
* Extracted shared JDBC test configuration into
`TestRelationalJdbcConfiguration`.
* Updated H2 schema tests to run only against the latest schema version.
* Updated a few persistence test assertions to compare JSON-backed fields
semantically rather than by serialized JSON string representation.
## Notes
PostgreSQL JSONB preserves JSON semantics but may rewrite formatting. Some
existing assertions relied on raw JSON string equality and produced false
failures on PostgreSQL. Test fixtures were updated to compare parsed map
content instead.
## Test plan
```bash
./gradlew :polaris-relational-jdbc:check
./gradlew :polaris-relational-jdbc:test \
--tests
"org.apache.polaris.persistence.relational.jdbc.AtomicMetastoreManagerWithJdbcBasePersistenceImplPostgresSchemaIT"
```
Verified locally: PostgreSQL schema IT passed (96/96).
## Checklist
- [ ] ๐ก๏ธ Don't disclose security issues! (contact [email protected])
- [ ] ๐ Clearly explained why the changes are needed, or linked related
issues: Fixes #
- [ ] ๐งช Added/updated tests with good coverage, or manually tested (and
explained how)
- [ ] ๐ก Added comments for complex logic
- [ ] ๐งพ Updated `CHANGELOG.md` (if needed)
- [ ] ๐ Updated documentation in `site/content/in-dev/unreleased` (if needed)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]