Skip to content

Commit

Permalink
Remove reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astachowski committed Dec 6, 2024
1 parent bd22194 commit 36d600d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/snowflake/client/jdbc/ArrowResultChunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ private void addBatchData(List<ValueVector> batch) {
*/
public void readArrowStream(InputStream is) throws IOException {
ArrayList<ValueVector> valueVectors = new ArrayList<>();
Class<?> clazz = ArrowBuf.class;
/*Class<?> clazz = ArrowBuf.class;
try {
Field os = clazz.getDeclaredField("osName");
os.setAccessible(true);
os.set(null, "aix");
} catch (NoSuchFieldException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}*/
try (ArrowStreamReader reader = new ArrowStreamReader(is, rootAllocator)) {
root = reader.getVectorSchemaRoot();
while (reader.loadNextBatch()) {
Expand Down

0 comments on commit 36d600d

Please sign in to comment.