eric-maynard commented on issue #241:
URL: https://github.com/apache/polaris/issues/241#issuecomment-2327036712

   I was able to reproduce this, dumping the full error here:
   ```
   DEBUG [2024-09-03 10:11:25,631 - 536   ] [main] [] 
o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: Create EclipseLink Meta 
Store Session for default-realm 
   [EL Warning]: metadata: 2024-09-03 
10:11:25.748--ServerSession(136011184)--You have specified multiple ids for the 
entity class 
[org.apache.polaris.core.persistence.models.ModelEntityChangeTracking] without 
specifying an @IdClass. By doing this you may lose the ability to find by 
identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:11:25.751--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelGrantRecord] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:11:25.752--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntityDropped] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:11:25.753--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntity] without 
specifying an @IdClass. By doing this you may lose the ability to find by 
identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:11:25.753--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntityActive] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Info]: 2024-09-03 10:11:25.792--ServerSession(136011184)--EclipseLink, 
version: Eclipse Persistence Services - 4.0.3.v202405220658
   [EL Fine]: sql: 2024-09-03 
10:11:26.007--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
ENTITIES (CATALOGID BIGINT NOT NULL, ID BIGINT NOT NULL, CREATETIMESTAMP 
BIGINT, DROPTIMESTAMP BIGINT, ENTITYVERSION INTEGER, GRANTRECORDSVERSION 
INTEGER, INTERNALPROPERTIES VARCHAR(65535), LASTUPDATETIMESTAMP BIGINT, NAME 
VARCHAR(255), PARENTID BIGINT, PROPERTIES VARCHAR(65535), PURGETIMESTAMP 
BIGINT, SUBTYPECODE INTEGER, TOPURGETIMESTAMP BIGINT, TYPECODE INTEGER, VERSION 
BIGINT, PRIMARY KEY (CATALOGID, ID))
   [EL Fine]: sql: 2024-09-03 10:11:26.024--ServerSession(136011184)--SELECT 1
   [EL Warning]: 2024-09-03 10:11:26.026--ServerSession(136011184)--Exception 
[EclipseLink-4002] (Eclipse Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: java.sql.SQLSyntaxErrorException: Column length too big 
for column 'INTERNALPROPERTIES' (max = 16383); use BLOB or TEXT instead
   Error Code: 1074
   Call: CREATE TABLE ENTITIES (CATALOGID BIGINT NOT NULL, ID BIGINT NOT NULL, 
CREATETIMESTAMP BIGINT, DROPTIMESTAMP BIGINT, ENTITYVERSION INTEGER, 
GRANTRECORDSVERSION INTEGER, INTERNALPROPERTIES VARCHAR(65535), 
LASTUPDATETIMESTAMP BIGINT, NAME VARCHAR(255), PARENTID BIGINT, PROPERTIES 
VARCHAR(65535), PURGETIMESTAMP BIGINT, SUBTYPECODE INTEGER, TOPURGETIMESTAMP 
BIGINT, TYPECODE INTEGER, VERSION BIGINT, PRIMARY KEY (CATALOGID, ID))
   Query: DataModifyQuery(sql="CREATE TABLE ENTITIES (CATALOGID BIGINT NOT 
NULL, ID BIGINT NOT NULL, CREATETIMESTAMP BIGINT, DROPTIMESTAMP BIGINT, 
ENTITYVERSION INTEGER, GRANTRECORDSVERSION INTEGER, INTERNALPROPERTIES 
VARCHAR(65535), LASTUPDATETIMESTAMP BIGINT, NAME VARCHAR(255), PARENTID BIGINT, 
PROPERTIES VARCHAR(65535), PURGETIMESTAMP BIGINT, SUBTYPECODE INTEGER, 
TOPURGETIMESTAMP BIGINT, TYPECODE INTEGER, VERSION BIGINT, PRIMARY KEY 
(CATALOGID, ID))")
   [EL Fine]: sql: 2024-09-03 
10:11:26.031--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
ENTITIES_ACTIVE (CATALOGID BIGINT NOT NULL, ID BIGINT NOT NULL, PARENTID BIGINT 
NOT NULL, TYPECODE INTEGER NOT NULL, NAME VARCHAR(255), SUBTYPECODE INTEGER, 
PRIMARY KEY (CATALOGID, ID, PARENTID, TYPECODE))
   [EL Fine]: sql: 2024-09-03 
10:11:26.046--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
ENTITIES_CHANGE_TRACKING (CATALOGID BIGINT NOT NULL, ID BIGINT NOT NULL, 
ENTITYVERSION INTEGER, GRANTRECORDSVERSION INTEGER, VERSION BIGINT, PRIMARY KEY 
(CATALOGID, ID))
   [EL Fine]: sql: 2024-09-03 
10:11:26.055--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
ENTITIES_DROPPED (CATALOGID BIGINT NOT NULL, SUBTYPECODE INTEGER NOT NULL, 
DROPTIMESTAMP BIGINT NOT NULL, NAME VARCHAR(255) NOT NULL, PARENTID BIGINT NOT 
NULL, TYPECODE INTEGER NOT NULL, ID BIGINT, TOPURGETIMESTAMP BIGINT, VERSION 
BIGINT, PRIMARY KEY (CATALOGID, SUBTYPECODE, DROPTIMESTAMP, NAME, PARENTID, 
TYPECODE))
   [EL Fine]: sql: 2024-09-03 
10:11:26.065--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
GRANT_RECORDS (GRANTEECATALOGID BIGINT NOT NULL, PRIVILEGECODE INTEGER NOT 
NULL, GRANTEEID BIGINT NOT NULL, SECURABLEID BIGINT NOT NULL, 
SECURABLECATALOGID BIGINT NOT NULL, VERSION BIGINT, PRIMARY KEY 
(GRANTEECATALOGID, PRIVILEGECODE, GRANTEEID, SECURABLEID, SECURABLECATALOGID))
   [EL Fine]: sql: 2024-09-03 
10:11:26.072--ServerSession(136011184)--Connection(2027363825)--CREATE INDEX 
GRANT_RECORDS_BY_GRANTEE_INDEX ON GRANT_RECORDS (granteeCatalogId, granteeId, 
securableCatalogId, securableId, privilegeCode)
   [EL Fine]: sql: 2024-09-03 
10:11:26.08--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
PRINCIPAL_SECRETS (PRINCIPALCLIENTID VARCHAR(255) NOT NULL, MAINSECRET 
VARCHAR(255), PRINCIPALID BIGINT, SECONDARYSECRET VARCHAR(255), VERSION BIGINT, 
PRIMARY KEY (PRINCIPALCLIENTID))
   [EL Fine]: sql: 2024-09-03 
10:11:26.087--ServerSession(136011184)--Connection(2027363825)--CREATE TABLE 
POLARIS_SEQUENCE (ID BIGINT AUTO_INCREMENT NOT NULL, PRIMARY KEY (ID))
   [EL Fine]: sql: 2024-09-03 
10:11:26.138--ServerSession(136011184)--Connection(2027363825)--SELECT 
CATALOGID, ID, PARENTID, TYPECODE, NAME, SUBTYPECODE FROM ENTITIES_ACTIVE WHERE 
((((CATALOGID = ?) AND (PARENTID = ?)) AND (TYPECODE = ?)) AND (NAME = ?))
        bind => [0, 0, 2, root]
   DEBUG [2024-09-03 10:11:26,140 - 1045  ] [main] [] 
o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: transaction committed 
   [EL Fine]: sql: 2024-09-03 
10:11:26.146--ServerSession(136011184)--Connection(2027363825)--SELECT 
CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   [EL Fine]: sql: 2024-09-03 10:11:26.147--ServerSession(136011184)--SELECT 1
   [EL Warning]: 2024-09-03 10:11:26.147--UnitOfWork(1152991394)--Exception 
[EclipseLink-4002] (Eclipse Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' 
doesn't exist
   Error Code: 1146
   Call: SELECT CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   Query: ReadObjectQuery(referenceClass=ModelEntity sql="SELECT CATALOGID, ID, 
CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, GRANTRECORDSVERSION, 
INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, PROPERTIES, 
PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION FROM ENTITIES 
WHERE ((CATALOGID = ?) AND (ID = ?))")
   jakarta.persistence.PersistenceException: Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' 
doesn't exist
   Error Code: 1146
   Call: SELECT CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   Query: ReadObjectQuery(referenceClass=ModelEntity sql="SELECT CATALOGID, ID, 
CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, GRANTRECORDSVERSION, 
INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, PROPERTIES, 
PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION FROM ENTITIES 
WHERE ((CATALOGID = ?) AND (ID = ?))")
   DEBUG [2024-09-03 10:11:26,147 - 1052  ] [main] [] 
o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: transaction rolled back 
   jakarta.persistence.PersistenceException: Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' 
doesn't exist
   Error Code: 1146
   Call: SELECT CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   Query: ReadObjectQuery(referenceClass=ModelEntity sql="SELECT CATALOGID, ID, 
CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, GRANTRECORDSVERSION, 
INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, PROPERTIES, 
PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION FROM ENTITIES 
WHERE ((CATALOGID = ?) AND (ID = ?))")
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.getDetailedException(QueryImpl.java:392)
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:265)
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:475)
        at jakarta.persistence.TypedQuery.getResultStream(TypedQuery.java:87)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkStore.lookupEntity(PolarisEclipseLinkStore.java:213)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkStore.writeToEntities(PolarisEclipseLinkStore.java:74)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.writeToEntities(PolarisEclipseLinkMetaStoreSessionImpl.java:330)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.writeEntity(PolarisMetaStoreManagerImpl.java:120)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.persistNewEntity(PolarisMetaStoreManagerImpl.java:189)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:652)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.lambda$bootstrapPolarisService$2(PolarisMetaStoreManagerImpl.java:706)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.runActionInTransaction(PolarisEclipseLinkMetaStoreSessionImpl.java:275)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:706)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapServiceAndCreatePolarisPrincipalForRealm(LocalPolarisMetaStoreManagerFactory.java:185)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapRealms(LocalPolarisMetaStoreManagerFactory.java:87)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:69)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:40)
        at io.dropwizard.core.cli.ConfiguredCom at 
org.eclipse.persistence.internal.jpa.QueryImpl.getDetailedException(QueryImpl.java:392)
   mand.run(ConfiguredCommand.java:98)
        at io.dropwizard.core.cli.Cli.run(Cli.java:78)
        at io.dropwizard.core.Application.run(Application.java:94)
        at 
org.apache.polaris.service.PolarisApplication.main(PolarisApplication.java:121)
   Caused by: org.eclipse.persistence.exceptions.DatabaseException: 
   Internal Exception: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' 
doesn't exist
   Error Code: 1146
   Call: SELECT CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   Query: ReadObjectQuery(referenceClass=ModelEntity sql="SELECT CATALOGID, ID, 
CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, GRANTRECORDSVERSION, 
INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, PROPERTIES, 
PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION FROM ENTITIES 
WHERE ((CATALOGID = ?) AND (ID = ?))")
        at 
org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:343)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:702)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:569)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2048)
        at 
org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:611)
        at 
org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:263)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:280)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:266)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:813)
        at 
org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:2912)
        at 
org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:2865)
        at 
org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:563)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1236)
        at 
org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:913)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1195)
        at 
org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:448)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1283)
        at 
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:3025)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(Abstrac  
     at 
org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:265)
   tSession.java:1841)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1823)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1788)
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:263)
        ... 19 common frames omitted
   Caused by: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' doesn't 
exist
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
        at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:113)
        at 
com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:938)
        at 
com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1004)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:1026)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:662)
        ... 39 common frames omitted
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:475)
        at jakarta.persistence.TypedQuery.getResultStream(TypedQuery.java:87)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkStore.lookupEntity(PolarisEclipseLinkStore.java:213)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkStore.writeToEntities(PolarisEclipseLinkStore.java:74)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.writeToEntities(PolarisEclipseLinkMetaStoreSessionImpl.java:330)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.writeEntity(PolarisMetaStoreManagerImpl.java:120)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.persistNewEntity(PolarisMetaStoreManagerImpl.java:189)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:652)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.lambda$bootstrapPolarisService$2(PolarisMetaStoreManagerImpl.java:706)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.runActionInTransaction(PolarisEclipseLinkMetaStoreSessionImpl.java:275)
        at 
org.apache.polaris.core.persistence.PolarisMetaStoreManagerImpl.bootstrapPolarisService(PolarisMetaStoreManagerImpl.java:706)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapServiceAndCreatePolarisPrincipalForRealm(LocalPolarisMetaStoreManagerFactory.java:185)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapRealms(LocalPolarisMetaStoreManagerFactory.java:87)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:69)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:40)
        at 
io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.core.cli.Cli.run(Cli.java:78)
        at io.dropwizard.core.Application.run(Application.java:94)
        at 
org.apache.polaris.service.PolarisApplication.main(PolarisApplication.java:121)
   Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 
4.0.3.v202405220658): org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' 
doesn't exist
   Error Code: 1146
   Call: SELECT CATALOGID, ID, CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, 
GRANTRECORDSVERSION, INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, 
PROPERTIES, PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION 
FROM ENTITIES WHERE ((CATALOGID = ?) AND (ID = ?))
        bind => [0, 0]
   Query: ReadObjectQuery(referenceClass=ModelEntity sql="SELECT CATALOGID, ID, 
CREATETIMESTAMP, DROPTIMESTAMP, ENTITYVERSION, GRANTRECORDSVERSION, 
INTERNALPROPERTIES, LASTUPDATETIMESTAMP, NAME, PARENTID, PROPERTIES, 
PURGETIMESTAMP, SUBTYPECODE, TOPURGETIMESTAMP, TYPECODE, VERSION FROM ENTITIES 
WHERE ((CATALOGID = ?) AND (ID = ?))")
        at 
org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:343)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:702)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:569)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2048)
        at 
org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:611)
        at 
org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:263)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:280)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:266)
        at 
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:813)
        at 
org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:2912)
        at 
org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:2865)
        at 
org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:563)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1236)
        at 
org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:913)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1195)
        at 
org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:448)
        at 
org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1283)
        at 
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:3025)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1841)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1823)
        at 
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1788)
        at 
org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:263)
        ... 19 more
   Caused by: java.sql.SQLSyntaxErrorException: Table 'db.ENTITIES' doesn't 
exist
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
        at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:113)
        at 
com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:938)
        at 
com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1004)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:1026)
        at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:662)
        ... 39 more
   
   ```


-- 
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]

Reply via email to