Skip to content

Commit 0b72f89

Browse files
committed
chore: remove scope from next() in JsonResultSet
1 parent ef20f9e commit 0b72f89

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.google.cloud.bigquery.FieldValue.Attribute;
2626
import com.google.cloud.bigquery.Schema;
2727
import com.google.cloud.bigquery.exception.BigQueryJdbcRuntimeException;
28-
import io.opentelemetry.context.Scope;
2928
import java.sql.ResultSet;
3029
import java.sql.SQLException;
3130
import java.util.concurrent.BlockingQueue;
@@ -159,9 +158,7 @@ public boolean next() throws SQLException {
159158
}
160159
try {
161160
// Advance the cursor,Potentially blocking operation
162-
try (Scope scope = makeOriginalContextCurrent()) {
163-
this.cursor = this.buffer.take();
164-
}
161+
this.cursor = this.buffer.take();
165162
if (this.cursor.getException() != null) {
166163
throw new BigQueryJdbcRuntimeException(this.cursor.getException());
167164
}

0 commit comments

Comments
 (0)