Skip to content

Commit 729efc8

Browse files
committed
adds result set iteration
1 parent ecd58b6 commit 729efc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/databricks/jdbc/integration/benchmarking/LargeQueriesBenchmarkingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void measureLargeQueriesPerformance(int recording) {
108108
i * 1000000 + random.nextInt(1000000); // Randomization to avoid possible query caching
109109
try (Statement statement = connection.createStatement()) {
110110
long startTime = System.currentTimeMillis();
111-
statement.executeQuery(
111+
ResultSet rs = statement.executeQuery(
112112
"SELECT * FROM "
113113
+ SCHEMA_NAME
114114
+ "."
@@ -117,6 +117,7 @@ void measureLargeQueriesPerformance(int recording) {
117117
+ ROWS
118118
+ " OFFSET "
119119
+ offset);
120+
while(rs.next()) {}
120121
long endTime = System.currentTimeMillis();
121122
if (recording == 1) {
122123
timesForOSSDriver[i] = endTime - startTime;

0 commit comments

Comments
 (0)