Skip to content

Commit a340745

Browse files
authored
fix typos
1 parent cdc7257 commit a340745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/sql/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def _parse_datatype_json_value(json_value):
947947

948948
def _int_size_to_type(size):
949949
"""
950-
Return the Scala type from the size of integers.
950+
Return the Catalyst datatype from the size of integers.
951951
"""
952952
if size <= 8:
953953
return ByteType
@@ -977,7 +977,7 @@ def _int_size_to_type(size):
977977

978978
# compute array typecode mappings for unsigned integer types
979979
for _typecode in _array_unsigned_int_typecode_ctype_mappings.keys():
980-
# JVM does not have unsigned types, so use signed types that is at list 1
980+
# JVM does not have unsigned types, so use signed types that is at least 1
981981
# bit larger to store
982982
size = ctypes.sizeof(_array_unsigned_int_typecode_ctype_mappings[_typecode]) * 8 + 1
983983
dt = _int_size_to_type(size)

0 commit comments

Comments
 (0)