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 year, quarter, month, week, dayofyear and dayofmonth) #10764

Closed
2 tasks done
Tracked by #10022
yfsn666 opened this issue Aug 7, 2024 · 0 comments · Fixed by #10766
Closed
2 tasks done
Tracked by #10022
Assignees
Milestone

Comments

@yfsn666
Copy link
Contributor

yfsn666 commented Aug 7, 2024

Description

Enable transform SQL to support the following FlinkSQL temporal functions:

  • year(date): returns the year from SQL date date
  • quarter(date): returns the quarter of a year (an integer between 1 and 4) from SQL date
  • month(date): returns the month of a year (an integer between 1 and 12) from SQL date
  • week(date): returns the week of a year (an integer between 1 and 53) from SQL date
  • dayofyear(date): returns the day of a year (an integer between 1 and 366) from SQL date
  • dayofmonth(date): returns the day of a month (an integer between 1 and 31) from SQL date

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