HHH-18709 CriteriaUpdate involving JSON field containing Map<String, Object> results in SemanticException #9289
Hibernate Jenkins CI / Tests / Build / tidb_tidb / Test
failed
Nov 21, 2024 in 0s
failed: 5, skipped: 2358, passed: 15797
Send us feedback
Details
org.hibernate.orm.test.instant.InstantWithNormalizedTest.test(EntityManagerFactoryScope)
org.opentest4j.AssertionFailedError: expected: <2024-11-21T09:24:19Z> but was: <2024-11-21T10:24:19Z>
Stack trace
org.opentest4j.AssertionFailedError: expected: <2024-11-21T09:24:19Z> but was: <2024-11-21T10:24:19Z>
at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at app//org.hibernate.orm.test.instant.InstantWithNormalizedTest.assertEqualInstants(InstantWithNormalizedTest.java:64)
at app//org.hibernate.orm.test.instant.InstantWithNormalizedTest.lambda$test$1(InstantWithNormalizedTest.java:56)
at app//org.hibernate.internal.TransactionManagement.manageTransaction(TransactionManagement.java:20)
at app//org.hibernate.SessionFactory.lambda$inTransaction$0(SessionFactory.java:248)
at app//org.hibernate.SessionFactory.inSession(SessionFactory.java:225)
at app//org.hibernate.SessionFactory.inTransaction(SessionFactory.java:248)
at app//org.hibernate.internal.SessionFactoryImpl.runInTransaction(SessionFactoryImpl.java:909)
at app//org.hibernate.orm.test.instant.InstantWithNormalizedTest.test(InstantWithNormalizedTest.java:52)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
Standard out
09:24:19,218 INFO LogHelper:30 - HHH000204: Processing PersistenceUnitInfo [name: test-pu]
09:24:19,223 WARN CachingRegionFactory:46 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
09:24:19,223 INFO RegionFactoryInitiator:51 - HHH000025: Second-level cache region factory [org.hibernate.testing.cache.CachingRegionFactory]
[subsystem] WARN hibernate.orm.deprecation DialectFactoryImpl:152 - HHH90000025: TiDBDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
[subsystem] INFO e.orm.connections.pooling JdbcEnvironmentInitiator:157 - HHH10001005: Database info:
Database JDBC URL [jdbc:mysql://localhost:4000/hibernate_orm_test]
Database driver: com.mysql.jdbc.Driver
Database version: 5.7.25
Autocommit mode: false
Isolation level: undefined/unknown
Minimum pool size: 1
Maximum pool size: 5
[subsystem] INFO org.hibernate.orm.beans ManagedBeanRegistryInitiator:74 - HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, but CDI is available on the Hibernate ClassLoader.
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchBuilderImpl:40 - Using standard BatchBuilder (1)
09:24:19,258 INFO JtaPlatformInitiator:55 - HHH000490: Using JTA platform [org.hibernate.engine.transaction.jta.platform.internal.WildFlyStandAloneJtaPlatform]
Hibernate:
drop table if exists Instants2
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:50 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@12d0ccd1] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:
create table Instants2 (
id bigint not null,
instantInLocalTimeZone datetime(6),
instantInUtc datetime(6),
instantWithTimeZone timestamp(6) null,
localDateTime datetime(6),
localDateTimeUtc datetime(6),
offsetDateTime datetime(6),
offsetDateTimeUtc datetime(6),
primary key (id)
) engine=InnoDB
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:50 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@28ab2f44] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
09:24:19,269 DEBUG StatisticsInitiator:86 - Statistics initialized [enabled=false]
Hibernate:
insert
into
Instants2
(instantInLocalTimeZone, instantInUtc, instantWithTimeZone, localDateTime, localDateTimeUtc, offsetDateTime, offsetDateTimeUtc, id)
values
(?, ?, ?, ?, ?, ?, ?, ?)
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (1:TIMESTAMP) <- [2024-11-21T09:24:19.218144129Z]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (2:TIMESTAMP_UTC) <- [2024-11-21T09:24:19.218144129Z]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (3:TIMESTAMP_WITH_TIMEZONE) <- [2024-11-21T09:24:19.218144129Z]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (4:TIMESTAMP) <- [2024-11-21T10:24:19.218144129]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (5:TIMESTAMP) <- [2024-11-21T09:24:19.218144129]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (6:TIMESTAMP) <- [2024-11-21T10:24:19.218144129+01:00]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (7:TIMESTAMP) <- [2024-11-21T09:24:19.218144129Z]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (8:BIGINT) <- [0]
09:24:19,272 INFO StatisticalLoggingSessionEventListener:278 - Session Metrics {
315738 nanoseconds spent acquiring 1 JDBC connections;
280857 nanoseconds spent releasing 1 JDBC connections;
391851 nanoseconds spent preparing 1 JDBC statements;
791761 nanoseconds spent executing 1 JDBC statements;
0 nanoseconds spent executing 0 JDBC batches;
0 nanoseconds spent performing 0 L2C puts;
0 nanoseconds spent performing 0 L2C hits;
0 nanoseconds spent performing 0 L2C misses;
2085834 nanoseconds spent executing 1 flushes (flushing a total of 1 entities and 0 collections);
0 nanoseconds spent executing 0 pre-partial-flushes;
0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
Hibernate:
select
i1_0.id,
i1_0.instantInLocalTimeZone,
i1_0.instantInUtc,
i1_0.instantWithTimeZone,
i1_0.localDateTime,
i1_0.localDateTimeUtc,
i1_0.offsetDateTime,
i1_0.offsetDateTimeUtc
from
Instants2 i1_0
where
i1_0.id=?
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:22 - binding parameter (1:BIGINT) <- [0]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (2:TIMESTAMP) -> [2024-11-21T09:24:19.218144Z]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (3:TIMESTAMP_UTC) -> [2024-11-21T09:24:19.218144Z]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (4:TIMESTAMP_WITH_TIMEZONE) -> [2024-11-21T10:24:19.218144Z]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (5:TIMESTAMP) -> [2024-11-21T10:24:19.218144]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (6:TIMESTAMP) -> [2024-11-21T09:24:19.218144]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (7:TIMESTAMP) -> [2024-11-21T09:24:19.218144Z]
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:22 - extracted value (8:TIMESTAMP) -> [2024-11-21T09:24:19.218144Z]
Hibernate:
drop table if exists Instants2
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:50 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@9804cc4] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
[subsystem] ERROR e.orm.connections.pooling DriverManagerConnectionProviderImpl:306 - Connection leak detected: there are 1 unclosed connections
more test results are not shown here, view them on Jenkins
Loading