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

executor: filter on table_schema for INFORMATION_SCHEMA.KEY_COLUMN_USAGE table #55162

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

YangKeao
Copy link
Member

@YangKeao YangKeao commented Aug 2, 2024

What problem does this PR solve?

Issue Number: close #55156

Problem Summary:

Previously, the condition table_schema = ... has no effect on table INFORMATION_SCHEMA.KEY_COLUMN_USAGE. This PR fixed it.

What changed and how does it work?

Also filter on table_schema condition.

Maybe I can add more automatically generated tests for InfoSchemaTablesExtractor 🤔 later. We should verify that all these extracted columns work on all the information schema tables.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Release note

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

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 2, 2024
@YangKeao
Copy link
Member Author

YangKeao commented Aug 2, 2024

/check-issue-triage-complete

@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 2, 2024
@YangKeao YangKeao requested a review from tiancaiamao August 2, 2024 08:52
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 73.9979%. Comparing base (ce45eff) to head (259522b).

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #55162        +/-   ##
================================================
+ Coverage   72.8356%   73.9979%   +1.1622%     
================================================
  Files          1568       1568                
  Lines        439200     439203         +3     
================================================
+ Hits         319894     325001      +5107     
+ Misses        99604      94034      -5570     
- Partials      19702      20168       +466     
Flag Coverage Δ
integration 26.8356% <0.0000%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.9567% <ø> (ø)
parser ∅ <ø> (∅)
br 52.5186% <ø> (+6.6316%) ⬆️

Copy link

ti-chi-bot bot commented Aug 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance6716, tangenta

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 2, 2024
Copy link

ti-chi-bot bot commented Aug 2, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-02 08:51:27.334927093 +0000 UTC m=+79484.553688698: ☑️ agreed by tangenta.
  • 2024-08-02 09:20:50.891163365 +0000 UTC m=+81248.109924972: ☑️ agreed by lance6716.

@hawkingrei
Copy link
Member

/retest

@ti-chi-bot ti-chi-bot bot merged commit f3e153a into pingcap:master Aug 5, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDBC test related to schema, FK and useInformationSchema=true failed
4 participants