Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-17199: [Java][FlightRPC] Clean up Flight SQL example server #13710

Merged
merged 1 commit into from
Aug 4, 2022
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