Time stamp changes in spark sql
Hi Team Is there a way to change the current timestamp from the current time zone to a different time zone .
- 862 Views
- 1 replies
- 0 kudos
Latest Reply
import sqlContext.implicits._import org.apache.spark.sql.functions._inputDF.select( unix_timestamp($"unix_timestamp").alias("unix_timestamp"), from_utc_timestamp($"unix_timestamp".cast(DataTypes.TimestampType), "UTC").alias("UTC"), from_utc_tim...
- 0 kudos