Skip to content

Commit

Permalink
Spark: Fix list behavior in StructInternalRow (apache#1943)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyanyy authored Dec 17, 2020
1 parent dbfb036 commit 81c3141
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private ArrayData collectionToArrayData(Type elementType, Collection<?> values)
array[pos] = new StructInternalRow(elementType.asStructType(), tuple));
case LIST:
return fillArray(values, array -> (BiConsumer<Integer, Collection<?>>) (pos, list) ->
array[pos] = collectionToArrayData(elementType.asListType(), list));
array[pos] = collectionToArrayData(elementType.asListType().elementType(), list));
case MAP:
return fillArray(values, array -> (BiConsumer<Integer, Map<?, ?>>) (pos, map) ->
array[pos] = mapToMapData(elementType.asMapType(), map));
Expand Down

0 comments on commit 81c3141

Please sign in to comment.