We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cafa5fd commit 88091eaCopy full SHA for 88091ea
python/pyspark/sql/types.py
@@ -993,6 +993,14 @@ def _int_size_to_type(size):
993
if sys.version_info[0] < 3:
994
_array_type_mappings['c'] = StringType
995
996
+# SPARK-21465:
997
+# In python2, array of 'L' happened to be mistakenly partially supported. To
998
+# avoid breaking user's code, we should keep this partial support. Below is a
999
+# dirty hacking to keep this partial support and make the unit test passes
1000
+if sys.version_info[0] < 3 and 'L' not in _array_type_mappings.keys():
1001
+ _array_type_mappings['L'] = LongType
1002
+ _array_unsigned_int_typecode_ctype_mappings['L'] = ctypes.c_uint
1003
+
1004
1005
def _infer_type(obj):
1006
"""Infer the DataType from obj
0 commit comments