Skip to content

str_to_date function push down#1961

Merged
ti-srebot merged 8 commits intopingcap:masterfrom
JaySon-Huang:str_to_date_pushdown
Jun 3, 2021
Merged

str_to_date function push down#1961
ti-srebot merged 8 commits intopingcap:masterfrom
JaySon-Huang:str_to_date_pushdown

Conversation

@JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented May 23, 2021

Signed-off-by: JaySon-Huang jayson.hjs@gmail.com

What problem does this PR solve?

Issue Number: #1942

We need to support pushing down the str_to_date function to TiFlash

What is changed and how it works?

Known issue

pingcap/tidb#24928

  1. TiDB has some incompatible parsing results compare with MySQL, the compatible issues are fixed in this PR, but not fixed by TiDB yet (maybe we should also fix them on the TiDB side to make TiDB and TiFlash be consistent)
    • '%b'/'%M' should be case insensitive
    • Parsing an empty string
    • Parsing the day that does not exist in the real world
    • Parsing the "Feb 29th" for leap year and non-leap year
    • Parsing some input for "%r" and "%T"

Related changes

  • Need to cherry-pick to the release branch: 5.0

Check List

Tests

  • Unit test

Side effects

Release note

  • Support pushing down the str_to_date function to TiFlash

@JaySon-Huang JaySon-Huang added the needs-cherry-pick-release-5.0 PR which needs to be cherry-picked to release-5.0 label May 23, 2021
@JaySon-Huang JaySon-Huang self-assigned this May 23, 2021
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang JaySon-Huang force-pushed the str_to_date_pushdown branch from f303d47 to 0f70f26 Compare May 24, 2021 06:27
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

2 similar comments
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

Remove unreasonable include

Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
…56" with format "%Y-%m-%d %H:%i:%S.%#"

Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 3, 2021
@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 3, 2021
@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot ti-srebot merged commit 30db147 into pingcap:master Jun 3, 2021
@JaySon-Huang JaySon-Huang deleted the str_to_date_pushdown branch June 3, 2021 07:02
@ti-srebot
Copy link
Collaborator

cherry pick to release-5.0 in PR #2063

@LittleFall LittleFall mentioned this pull request Jun 4, 2021
JaySon-Huang added a commit that referenced this pull request Jun 17, 2021
Co-authored-by: Zhi Qi <30543181+LittleFall@users.noreply.github.com>
Co-authored-by: JaySon <tshent@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-cherry-pick-release-5.0 PR which needs to be cherry-picked to release-5.0 status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants