Skip to content

Commit

Permalink
Fix OBJECT converter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dheyman committed Mar 22, 2024
1 parent 5c230df commit b0bef52
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ private static List<ArrowVectorConverter> initConverters(
break;

case OBJECT:
converters.add(new StructConverter((StructVector) vector, i, context));
if (vector instanceof StructVector) {
converters.add(new StructConverter((StructVector) vector, i, context));
} else {
converters.add(new VarCharConverter(vector, i, context));
}
break;

case BINARY:
Expand Down

0 comments on commit b0bef52

Please sign in to comment.