apache / polaris

Apache Polaris, the interoperable, open source catalog for Apache Iceberg
https://polaris.apache.org/
Apache License 2.0
1.17k stars 130 forks source link

Configure EclipseLink for automatic schema migration #456

Open eric-maynard opened 1 week ago

eric-maynard commented 1 week ago

Description

After #438 , it was reported that users with an existing metastore might not see the new columns get added to the metastore. This PR configures EclipseLink (via the default persistence.xml) to automatically add new columns when they should appear in the metastore.

Fixes #450

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

With this PR, I have walked through the steps described in #450, and tests are now (mostly) passing:

git checkout e232b000760da335721e9112f9d52fe041289613
rm -rf extension/persistence/eclipselink/build
./gradlew :polaris-eclipselink:test --rerun
git checkout issue-450
./gradlew :polaris-eclipselink:test --rerun