Skip to content

Commit

Permalink
address comment]
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaido91 committed Dec 4, 2018
1 parent 54f0f31 commit 724db5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ArrayBasedMapBuilder(keyType: DataType, valueType: DataType) extends Seria
val index = keyToIndex.getOrDefault(key, -1)
if (index == -1) {
if (withSizeCheck && size >= ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH) {
throw new RuntimeException(s"Unsuccessful attempt to concat maps with $size elements " +
throw new RuntimeException(s"Unsuccessful attempt to build maps with $size elements " +
s"due to exceeding the map size limit ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.")
}
keyToIndex.put(key, values.length)
Expand Down

0 comments on commit 724db5c

Please sign in to comment.