Skip to content

Commit

Permalink
Update tests for GetTables -- start refactor to use proper schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Abner Eduardo Ferreira authored and vfraga committed Apr 1, 2022
1 parent c881c1c commit fcfe718
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,12 @@ List<List<String>> getResults(FlightStream stream) {
}
} else if (fieldVector instanceof IntVector) {
for (int rowIndex = 0; rowIndex < rowCount; rowIndex++) {
Object data = fieldVector.getObject(rowIndex);
results.get(rowIndex).add(isNull(data) ? null : Objects.toString(data));
try {
results.get(rowIndex).add(String.valueOf(((IntVector) fieldVector).get(rowIndex)));
} catch (IllegalStateException e) {
System.out.println(("Failed at index " + rowIndex));
throw e;
}
}
} else if (fieldVector instanceof VarBinaryVector) {
final VarBinaryVector varbinaryVector = (VarBinaryVector) fieldVector;
Expand Down

0 comments on commit fcfe718

Please sign in to comment.