Skip to content

Commit

Permalink
Fix MapVector casting issue (#1750)
Browse files Browse the repository at this point in the history
* Fix MapVector casting issue
  • Loading branch information
sfc-gh-dheyman-1 committed May 10, 2024
1 parent 72d9725 commit 18ae23d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ private static List<ArrowVectorConverter> initConverters(
break;

case MAP:
converters.add(new MapConverter((MapVector) vector, i, context));
if (vector instanceof MapVector) {
converters.add(new MapConverter((MapVector) vector, i, context));
} else {
converters.add(new VarCharConverter(vector, i, context));
}
break;

case VECTOR:
Expand Down

0 comments on commit 18ae23d

Please sign in to comment.