Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.channels.Channels;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
Expand Down Expand Up @@ -442,12 +441,8 @@ public PreparedStatement prepare(final String query, final CallOption... options
}

@Override
public void close() throws SQLException {
try {
AutoCloseables.close(client);
} catch (final Exception e) {
throw new SQLException(e);
}
public void close() throws Exception {
AutoCloseables.close(client);
}

/**
Expand Down Expand Up @@ -557,7 +552,7 @@ private Schema deserializeSchema(final ByteString bytes) {
* @param options RPC-layer hints for this call.
* @return a FlightInfo object representing the stream(s) to fetch.
*/
public FlightInfo execute(final CallOption... options) throws SQLException {
public FlightInfo execute(final CallOption... options) {
checkOpen();

final FlightDescriptor descriptor = FlightDescriptor
Expand Down
Loading