Skip to content

Commit 2e7566d

Browse files
author
Davies Liu
committed
convert tuple into ArrayList
1 parent ceb3779 commit 2e7566d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# patching ListConverter, or it will convert bytearray into Java ArrayList
3434
def can_convert_list(self, obj):
35-
return isinstance(obj, list)
35+
return isinstance(obj, (list, tuple))
3636

3737
ListConverter.can_convert = can_convert_list
3838

0 commit comments

Comments
 (0)