chovy-3012 opened a new issue, #12699: URL: https://github.com/apache/seatunnel/issues/12699
### Search before asking - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description The Zeta SQL transform does not provide `UNIX_TIMESTAMP`, a common Hive date function and the inverse of the existing `FROM_UNIXTIME`. Its absence complicates migrating Hive/Spark SQL jobs to SeaTunnel. Proposed signatures (return `BIGINT`): - `UNIX_TIMESTAMP()` — current epoch seconds - `UNIX_TIMESTAMP(string[, pattern])` — parse a datetime string (default `yyyy-MM-dd HH:mm:ss`); returns NULL on parse failure, matching Hive - `UNIX_TIMESTAMP(dateTime)` — from a LocalDateTime / OffsetDateTime / LocalDate column ### Usage Scenario ``` SELECT UNIX_TIMESTAMP(dt) FROM ... SELECT UNIX_TIMESTAMP('2023-01-01 00:00:00') SELECT UNIX_TIMESTAMP(s, 'yyyy/MM/dd HH:mm:ss') FROM ... ``` Today this must be rewritten with `PARSEDATETIME` plus manual epoch arithmetic. ### Related issues None for `UNIX_TIMESTAMP`. ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
