We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a929e2 commit 06e2a51Copy full SHA for 06e2a51
polaris-core/src/main/java/org/apache/polaris/core/persistence/bootstrap/SchemaOptions.java
@@ -38,5 +38,13 @@ default void validate() {
38
if (schemaVersion() != null && schemaFile() != null) {
39
throw new IllegalStateException("Only one of schemaVersion or schemaFile can be set.");
40
}
41
+ if (schemaVersion() != null && !schemaVersion().equals(LATEST)) {
42
+ try {
43
+ Integer.parseInt(schemaVersion());
44
+ } catch (NumberFormatException e) {
45
+ throw new IllegalArgumentException(
46
+ "schemaVersion must be a valid integer or " + LATEST + ": " + schemaVersion(), e);
47
+ }
48
49
50
0 commit comments