Mind if I ask a reproducer? seems returning timestamps fine:
>>> from pyspark.sql.functions import *
>>> spark.range(1).select(to_timestamp(current_timestamp())).printSchema()
root
|-- to_timestamp(current_timestamp()): timestamp (nullable = false)
>>>
unsubscribe
On Thu, Mar 15, 2018 at 8:00 PM, Alan Featherston Lago
wrote:
> I'm a pretty new user of spark and I've run into this issue with the
> pyspark docs:
>
> The functions pyspark.sql.functions.to_date &&
> pyspark.sql.functions.to_timestamp
> behave in the same way.
I'm a pretty new user of spark and I've run into this issue with the
pyspark docs:
The functions pyspark.sql.functions.to_date &&
pyspark.sql.functions.to_timestamp behave in the same way. As in both
functions convert a Column of pyspark.sql.types.StringType or
pyspark.sql.types.TimestampType