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

Support push down sysdate() to TiKV #31872

Closed
Yisaer opened this issue Jan 21, 2022 · 0 comments · Fixed by #31881 or #32957
Closed

Support push down sysdate() to TiKV #31872

Yisaer opened this issue Jan 21, 2022 · 0 comments · Fixed by #31881 or #32957
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@Yisaer
Copy link
Contributor

Yisaer commented Jan 21, 2022

Enhancement

Currently, sysdate() couldn't been folded during optimization. In this issue, we wanted to push down sysdate() in following rule:

  1. support global variable sysdate-is-now, default false
  2. If sysdate-is-now is true, we should fold sysdate during optimization
  3. if sysdate-is-now is false, we should push down sysdate into TiKV

ref https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_sysdate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
1 participant