from_timestamp(long):數字(秒)=>字符串(yyyy-MM-dd HH:mm:ss)sql
unix_timestamp(String):字符串(yyyy-MM-dd HH:mm:ss)=>數字(秒)apache
to_timstamp(String):字符串(yyyy-MM-dd HH:mm:ss)=>TimestampType函數
cast(long as timstamp):數字(秒)=> TimestampTypespa
內置函數源碼:org/apache/spark/sql/catalyst/包下unix