Skip to content

Commit

Permalink
Fix Flight SQL and Flight JDBC rebase mismatch (apache#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfraga committed Jan 19, 2022
1 parent 24688cd commit c54d1f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import static org.apache.arrow.flight.sql.impl.FlightSql.DoPutUpdateResult;
import static org.apache.arrow.flight.sql.impl.FlightSql.SqlInfo;

import com.fasterxml.jackson.databind.util.ByteBufferBackedInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.channels.Channels;
import java.sql.SQLException;
Expand Down Expand Up @@ -559,7 +559,7 @@ private Schema deserializeSchema(final ByteString bytes) {
new Schema(Collections.emptyList()) :
MessageSerializer.deserializeSchema(
new ReadChannel(Channels.newChannel(
new ByteBufferBackedInputStream(bytes.asReadOnlyByteBuffer()))));
new ByteArrayInputStream(bytes.toByteArray()))));
} catch (final IOException e) {
throw new RuntimeException("Failed to deserialize schema", e);
}
Expand Down

0 comments on commit c54d1f9

Please sign in to comment.