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

The tidb_redact_log cannot be applied to the explain. #54565

Closed
hawkingrei opened this issue Jul 11, 2024 · 0 comments · Fixed by #54553
Closed

The tidb_redact_log cannot be applied to the explain. #54565

hawkingrei opened this issue Jul 11, 2024 · 0 comments · Fixed by #54553
Assignees
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int primary key);
set session tidb_redact_log=MARKER;
explain select * from t where a = 1;

2. What did you expect to see? (Required)

+---------------------+-----------+-----------+---------------+--------------------------------+
| id                  | estRows   | task      | access object | operator info                  |
+---------------------+-----------+-----------+---------------+--------------------------------+
| TableReader_7       | 174.87    | root      | partition:p1  | data:Selection_6               |
| └─Selection_6       | 174.87    | cop[tikv] |               | eq(test.t.a, <1>)                |
|   └─TableFullScan_5 | 174868.00 | cop[tikv] | table:t       | keep order:false, stats:pseudo |
+---------------------+-----------+-----------+---------------+--------------------------------+

3. What did you see instead (Required)

+---------------------+-----------+-----------+---------------+--------------------------------+
| id                  | estRows   | task      | access object | operator info                  |
+---------------------+-----------+-----------+---------------+--------------------------------+
| TableReader_7       | 174.87    | root      | partition:p1  | data:Selection_6               |
| └─Selection_6       | 174.87    | cop[tikv] |               | eq(test.t.a, 1)                |
|   └─TableFullScan_5 | 174868.00 | cop[tikv] | table:t       | keep order:false, stats:pseudo |
+---------------------+-----------+-----------+---------------+--------------------------------+

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner severity/moderate labels Jul 11, 2024
@hawkingrei hawkingrei self-assigned this Jul 11, 2024
ti-chi-bot bot pushed a commit that referenced this issue Jul 23, 2024
@ti-chi-bot ti-chi-bot added affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants