tidb icon indicating copy to clipboard operation
tidb copied to clipboard

expression: implement castTimeAsDuration function pushdown

Open AntiTopQuark opened this issue 2 years ago • 5 comments

What problem does this PR solve?

Issue Number: close #37033 related issue: https://github.com/pingcap/tiflash/issues/5306 Problem Summary: support castTimeAsDuration in tiflash

What is changed and how it works?

  1. open pushdown of castTimeAsDuration
  2. add some test

Check List

Tests

  • [x] Unit test
  • [x] Integration test
  • [ ] Manual test (add detailed scripts or steps below)
  • [ ] No code

Side effects

  • [ ] Performance regression: Consumes more CPU
  • [ ] Performance regression: Consumes more Memory
  • [ ] Breaking backward compatibility

Documentation

  • [ ] Affects user behaviors
  • [ ] Contains syntax changes
  • [ ] Contains variable changes
  • [ ] Contains experimental features
  • [ ] Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

Support to pushdown castTimeAsDuration to TiFlash

AntiTopQuark avatar Aug 10 '22 15:08 AntiTopQuark

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • SeaRise
  • guo-shaoge

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.

ti-chi-bot avatar Aug 10 '22 15:08 ti-chi-bot

CLA assistant check
All committers have signed the CLA.

sre-bot avatar Aug 10 '22 15:08 sre-bot

/run-all-tests

AntiTopQuark avatar Aug 10 '22 16:08 AntiTopQuark

/cc @SeaRise

AntiTopQuark avatar Aug 11 '22 00:08 AntiTopQuark

/run-unit-test

AntiTopQuark avatar Aug 11 '22 02:08 AntiTopQuark

/run-unit-test

AntiTopQuark avatar Aug 11 '22 13:08 AntiTopQuark

/run-unit-test

AntiTopQuark avatar Aug 12 '22 02:08 AntiTopQuark

Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/e8c036cea8db937184964860ca9f49a540b3eca8

sre-bot avatar Aug 12 '22 02:08 sre-bot

/run-all-tests

hawkingrei avatar Aug 15 '22 01:08 hawkingrei

/cc @ywqzzy

SeaRise avatar Aug 15 '22 07:08 SeaRise

@ywqzzy: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

ti-chi-bot avatar Aug 15 '22 07:08 ti-chi-bot

/merge

guo-shaoge avatar Aug 15 '22 09:08 guo-shaoge

This pull request has been accepted and is ready to merge.

Commit hash: 72f06650baf89b4ce3ab25eb7b61ec4dbe3ee29f

ti-chi-bot avatar Aug 15 '22 09:08 ti-chi-bot

TiDB MergeCI notify

CI Name Result Duration Compare with Parent commit
idc-jenkins-ci/integration-cdc-test 🟢 all 36 tests passed 33 min Existing passed
idc-jenkins-ci-tidb/integration-common-test 🟢 all 17 tests passed 22 min Existing passed
idc-jenkins-ci-tidb/common-test 🟢 all 11 tests passed 13 min Existing passed
idc-jenkins-ci-tidb/tics-test 🟢 all 1 tests passed 7 min 42 sec Existing passed
idc-jenkins-ci-tidb/integration-ddl-test 🟢 all 6 tests passed 6 min 58 sec Existing passed
idc-jenkins-ci-tidb/sqllogic-test-2 🟢 all 28 tests passed 6 min 31 sec Existing passed
idc-jenkins-ci-tidb/sqllogic-test-1 🟢 all 26 tests passed 5 min 19 sec Existing passed
idc-jenkins-ci-tidb/mybatis-test 🟢 all 1 tests passed 3 min 12 sec Existing passed
idc-jenkins-ci-tidb/integration-compatibility-test 🟢 all 1 tests passed 2 min 54 sec Existing passed
idc-jenkins-ci-tidb/plugin-test 🟢 build success, plugin test success 4min Existing passed

sre-bot avatar Aug 15 '22 11:08 sre-bot

TiDB MergeCI notify

CI Name Result Duration Compare with Parent commit
idc-jenkins-ci/integration-cdc-test 🟢 all 36 tests passed 26 min Existing passed
idc-jenkins-ci-tidb/integration-common-test 🟢 all 17 tests passed 13 min Existing passed
idc-jenkins-ci-tidb/common-test 🟢 all 11 tests passed 12 min Existing passed
idc-jenkins-ci-tidb/tics-test 🟢 all 1 tests passed 7 min 22 sec Existing passed
idc-jenkins-ci-tidb/integration-ddl-test 🟢 all 6 tests passed 5 min 43 sec Existing passed
idc-jenkins-ci-tidb/sqllogic-test-2 🟢 all 28 tests passed 5 min 33 sec Existing passed
idc-jenkins-ci-tidb/sqllogic-test-1 🟢 all 26 tests passed 5 min 14 sec Existing passed
idc-jenkins-ci-tidb/mybatis-test 🟢 all 1 tests passed 4 min 22 sec Existing passed
idc-jenkins-ci-tidb/integration-compatibility-test 🟢 all 1 tests passed 3 min 13 sec Existing passed
idc-jenkins-ci-tidb/plugin-test 🟢 build success, plugin test success 4min Existing passed

sre-bot avatar Aug 19 '22 03:08 sre-bot