File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/com/databricks/jdbc/integration/benchmarking Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments