You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A script generated for SQL Server TPPROC-C includes the following statements:
if {[catch {set rows [ odbc allrows "select sum(d_next_o_id) from district" ]} message ]} {
error "Failed to query district table : $message"
For large size test databases (30,000 warehouses, 75,000 warehouses) this statement results in arithmetic overflow. To address this issue, I have to manually modify the script before each run to replace statement above with:
if {[catch {set rows [ odbc allrows "select sum(cast(d_next_o_id as bigint)) from district" ]} message ]} {
error "Failed to query district table : $message"
Casting d_next_o_id to bigint addressing the issue with arithmetic overflow. It would be helpful to include this cast into the script generator so that users do not have to do this manual change. BTW, this statement appears twice in the script.
To Reproduce
Steps to reproduce the behavior:
Generate large test database - 30,000 warehouses or more
Run performance test with 500 virtual users using Autopilot
See error
Expected behavior
I would expect that test run successfully independent of the size of the test database.
HammerDB Version (please complete the following information):
Version: 4.6
Build:
HammerDB Interface (please complete the following information):
UI: GUI
Operating System (please complete the following information):
Server OS: Windows Server 2019
Client OS: Windows Server 2019
Database Server (please complete the following information):
Database name: SQL Server 2019
Database Client (please complete the following information):
Database client name: [ODBC Driver 17 for SQL Server
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
This looks like a good fix and cast(... as bigint) has already been used in TPROC-H without issues where similar problems were observed with queries on larger schemas. @Alex-Zarenin, please advise if you would like to do a Pull Request for this as well - it should be straightforward.
The query is found 4 times in https://github.com/TPC-Council/HammerDB/blob/master/src/mssqlserver/mssqlsoltp.tcl
as there are different versions of the script that get modified depending on the options selected, such as timed or asynchronous.
Describe the bug
A script generated for SQL Server TPPROC-C includes the following statements:
if {[catch {set rows [ odbc allrows "select sum(d_next_o_id) from district" ]} message ]} {
error "Failed to query district table : $message"
For large size test databases (30,000 warehouses, 75,000 warehouses) this statement results in arithmetic overflow. To address this issue, I have to manually modify the script before each run to replace statement above with:
if {[catch {set rows [ odbc allrows "select sum(cast(d_next_o_id as bigint)) from district" ]} message ]} {
error "Failed to query district table : $message"
Casting d_next_o_id to bigint addressing the issue with arithmetic overflow. It would be helpful to include this cast into the script generator so that users do not have to do this manual change. BTW, this statement appears twice in the script.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that test run successfully independent of the size of the test database.
HammerDB Version (please complete the following information):
HammerDB Interface (please complete the following information):
Operating System (please complete the following information):
Database Server (please complete the following information):
Database Client (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: