[GitHub] [spark] HyukjinKwon commented on pull request #28593: [SPARK-31710][SQL] Fail casting numeric to timestamp by default

2020-09-21 Thread GitBox
HyukjinKwon commented on pull request #28593: URL: https://github.com/apache/spark/pull/28593#issuecomment-695861989 I think it's because `timestamp_seconds` can be the direct replacement in `cast(num as timestamp)` but arguably `timestamp_millis` and `timestamp_micros` are less common. So

[GitHub] [spark] HyukjinKwon commented on pull request #28593: [SPARK-31710][SQL] Fail casting numeric to timestamp by default

2020-09-20 Thread GitBox
HyukjinKwon commented on pull request #28593: URL: https://github.com/apache/spark/pull/28593#issuecomment-695861989 I think it's because `timestamp_seconds` can be the direct replacement in `cast(num as timestamp)` but arguably `timestamp_millis` and `timestamp_micros` are less common. So