Skip to content

Commit 32f0708

Browse files
committed
LongType only accepts long values.
1 parent c2b23dd commit 32f0708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def _infer_schema_type(obj, dataType):
672672
ByteType: (int, long),
673673
ShortType: (int, long),
674674
IntegerType: (int, long),
675-
LongType: (int, long),
675+
LongType: (long,),
676676
FloatType: (float,),
677677
DoubleType: (float,),
678678
DecimalType: (decimal.Decimal,),

0 commit comments

Comments
 (0)