from pyspark.sql.functions import lit
cut_off = datetime.datetime(2016, 6, 29, 15)
action_df.select(lit(cut_off).cast('string')).limit(1).show()
Comparing datetime object to 8601 strings gives wrong result, why is it allowed?