Skip to content

Commit

Permalink
convert tuple into ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Apr 18, 2015
1 parent ceb3779 commit 2e7566d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/java_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# patching ListConverter, or it will convert bytearray into Java ArrayList
def can_convert_list(self, obj):
return isinstance(obj, list)
return isinstance(obj, (list, tuple))

ListConverter.can_convert = can_convert_list

Expand Down

0 comments on commit 2e7566d

Please sign in to comment.