Description
Running the following code with a null value in a non-nullable column silently works. This makes the code incredibly hard to trust.
In [2]: from pyspark.sql.types import * In [3]: sqlContext.createDataFrame([(None,)], StructType([StructField("a", TimestampType(), False)])).collect() Out[3]: [Row(a=None)]
Attachments
Attachments
Issue Links
- duplicates
-
SPARK-13740 add null check for _verify_type in types.py
- Resolved
- is related to
-
SPARK-11868 wrong results returned from dataframe create from Rows without consistent schma on pyspark
- Resolved
-
SPARK-13740 add null check for _verify_type in types.py
- Resolved
- links to