Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][SDK] Transform SQL support temporal functions(Including form_unixtime, unix_timestamp and to_timestamp) #10781

Closed
2 tasks done
yfsn666 opened this issue Aug 13, 2024 · 0 comments · Fixed by #10805
Closed
2 tasks done
Assignees
Milestone

Comments

@yfsn666
Copy link
Contributor

yfsn666 commented Aug 13, 2024

Description

Enable transform SQL to support the following FlinkSQL temporal functions:

  • form_unixtime(numeric[, string]): returns a representation of the numeric argument as a value in string format (default is ‘yyyy-MM-dd HH:mm:ss’). numeric is an internal timestamp value representing seconds since ‘1970-01-01 00:00:00’ UTC, such as produced by the UNIX_TIMESTAMP() function.
  • unix_timestamp(): returns current Unix timestamp in seconds.
  • unix_timestamp(string1[, string2]): converts date time string string1 in format string2 (by default: yyyy-MM-dd HH:mm:ss if not specified) to Unix timestamp (in seconds).
  • to_timestamp(string1[, string2]): converts date time string string1 with format string2 (by default: ‘yyyy-MM-dd HH:mm:ss’) under the ‘UTC+0’ time zone to a timestamp.

Parent issue:
#10022

Use case

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants