HHH-19929 Render special DB2 for i VALUES expression to avoid parameter type inference issues #11427
Hibernate Jenkins CI / Tests / Build / s390x_h2 / Test
failed
Dec 12, 2025 in 0s
org.hibernate.engine.internal.StatisticalLoggingSessionEventListenerTest.testSessionMetricsLog(SessionFactoryScope) failed
org.hibernate.engine.internal.StatisticalLoggingSessionEventListenerTest.testSessionMetricsLog(SessionFactoryScope) failed
Details
org.hibernate.engine.internal.StatisticalLoggingSessionEventListenerTest.testSessionMetricsLog(SessionFactoryScope)
java.lang.AssertionError:
Expecting actual:
53654007L
to be less than or equal to:
42828236L
Stack trace
java.lang.AssertionError:
Expecting actual:
53654007L
to be less than or equal to:
42828236L
at org.hibernate.engine.internal.StatisticalLoggingSessionEventListenerTest.testSessionMetricsLog(StatisticalLoggingSessionEventListenerTest.java:186)
at java.base/java.lang.reflect.Method.invoke(Method.java:572)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
Standard out
[subsystem] INFO org.hibernate.orm.beans ManagedBeanRegistryInitiator:76 - HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, but CDI is available on the Hibernate ClassLoader.
15:52:07,967 WARN CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
15:52:07,967 INFO RegionFactoryInitiator:53 - HHH000025: Second-level cache region factory [org.hibernate.testing.cache.CachingRegionFactory]
[subsystem] WARN hibernate.orm.deprecation DialectFactoryImpl:153 - HHH90000025: H2Dialect 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:163 - HHH10001005: Database info:
Database JDBC URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE]
Database driver: org.h2.Driver
Database version: 2.2.224
Autocommit mode: false
Isolation level: undefined/unknown
Minimum pool size: 1
Maximum pool size: 5
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchBuilderImpl:42 - Using standard BatchBuilder (10)
15:52:07,984 INFO JtaPlatformInitiator:56 - HHH000490: Using JTA platform [org.hibernate.engine.transaction.jta.platform.internal.WildFlyStandAloneJtaPlatform]
Hibernate:
drop table if exists BasicEntity cascade
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:44 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@28260846] 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 BasicEntity (
id integer not null,
data varchar(255),
primary key (id)
)
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:44 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@6a5cbe25] 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.
15:52:07,985 DEBUG StatisticsInitiator:86 - Statistics initialized [enabled=true]
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchImpl:77 - Created Batch (10) - `org.hibernate.testing.orm.domain.gambit.BasicEntity#INSERT`
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchImpl:107 - Adding to JDBC batch (1) - `org.hibernate.testing.orm.domain.gambit.BasicEntity#INSERT`
Hibernate:
insert
into
BasicEntity
(data, id)
values
(?, ?)
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:-1 - binding parameter (1:VARCHAR) <- [fooData]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:-1 - binding parameter (2:INTEGER) <- [1]
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchImpl:107 - Adding to JDBC batch (2) - `org.hibernate.testing.orm.domain.gambit.BasicEntity#INSERT`
Hibernate:
insert
into
BasicEntity
(data, id)
values
(?, ?)
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:-1 - binding parameter (1:VARCHAR) <- [fooData2]
[subsystem] TRACE g.hibernate.orm.jdbc.bind JdbcBindingLogging:-1 - binding parameter (2:INTEGER) <- [2]
15:52:07,988 DEBUG TimestampsCacheEnabledImpl:61 - Pre-invalidating space [BasicEntity], timestamp: 7231712411594752
[subsystem] TRACE .hibernate.orm.jdbc.batch BatchImpl:261 - Executing JDBC batch (2 / 10) - `org.hibernate.testing.orm.domain.gambit.BasicEntity#INSERT`
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
15:52:08,015 TRACE StatisticsImpl:742 - Statistics#queryCacheMiss( `select data from BasicEntity e where e.id=1`, `default-query-results-region` )
Hibernate:
select
be1_0.data
from
BasicEntity be1_0
where
be1_0.id=1
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:-1 - extracted value (1:VARCHAR) -> [fooData]
15:52:08,015 TRACE StatisticsImpl:755 - Statistics#queryCachePut( `select data from BasicEntity e where e.id=1`, `default-query-results-region` )
15:52:08,015 DEBUG StatisticsImpl:707 - HHH000117: HQL: select data from BasicEntity e where e.id=1, time: 0ms, rows: 1
15:52:08,015 DEBUG TimestampsCacheEnabledImpl:159 - [BasicEntity] last update timestamp: 7231712411594752, result set timestamp: 7231712165822465
15:52:08,015 TRACE StatisticsImpl:742 - Statistics#queryCacheMiss( `select data from BasicEntity e where e.id=1`, `default-query-results-region` )
Hibernate:
select
be1_0.data
from
BasicEntity be1_0
where
be1_0.id=1
[subsystem] TRACE ibernate.orm.jdbc.extract JdbcExtractingLogging:-1 - extracted value (1:VARCHAR) -> [fooData]
15:52:08,015 TRACE StatisticsImpl:755 - Statistics#queryCachePut( `select data from BasicEntity e where e.id=1`, `default-query-results-region` )
15:52:08,015 DEBUG StatisticsImpl:707 - HHH000117: HQL: select data from BasicEntity e where e.id=1, time: 0ms, rows: 1
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
15:52:08,015 DEBUG TimestampsCacheEnabledImpl:101 - Invalidating space [BasicEntity], timestamp: 7231712165949440
15:52:08,015 INFO StatisticalLoggingSessionEventListener:279 - Session Metrics {
2348 nanoseconds spent acquiring 1 JDBC connections;
4420 nanoseconds spent releasing 1 JDBC connections;
89560 nanoseconds spent preparing 3 JDBC statements;
46378 nanoseconds spent executing 2 JDBC statements;
25792865 nanoseconds spent executing 1 JDBC batches;
7390 nanoseconds spent performing 4 L2C puts;
4135 nanoseconds spent performing 2 L2C hits;
1752 nanoseconds spent performing 1 L2C misses;
27699366 nanoseconds spent executing 1 flushes (flushing a total of 2 entities and 0 collections);
5315 nanoseconds spent executing 2 pre-partial-flushes;
478 nanoseconds spent executing 2 partial-flushes (flushing a total of 0 entities and 0 collections)
}
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
[subsystem] DEBUG .hibernate.orm.jdbc.batch BatchImpl:169 - PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : insert into BasicEntity (data,id) values (?,?)
Hibernate:
drop table if exists BasicEntity cascade
[subsystem] INFO te.orm.connections.access DdlTransactionIsolatorNonJtaImpl:44 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@e9106edb] 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.
Loading