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

Can't find column in schema Column: [] Unique key: [] when using hash_agg() hint and tiflash engine #23886

Closed
lilinghai opened this issue Apr 7, 2021 · 1 comment · Fixed by #23980
Assignees
Labels
component/tiflash severity/critical sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@lilinghai
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `t1` (
  `a` bit(1) DEFAULT NULL,
  `b` bit(1) DEFAULT NULL,
  `c` bit(1) GENERATED ALWAYS AS (`a`) VIRTUAL
);
alter table t1 set tiflash replica 1;
set @@tidb_isolation_read_engines='tiflash';
select/*+ hash_agg() */ count(*) from t1 where c > 1;

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

successfully

3. What did you see instead (Required)

ERROR 1105 (HY000): Can't find column test.t1.a in schema Column: [test.t1.c] Unique key: []

4. What is your TiDB version? (Required)

Release Version: v4.0.0-beta.2-2578-g6cff35892
Edition: Community
Git Commit Hash: 6cff358
Git Branch: master
UTC Build Time: 2021-04-07 06:23:51
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tiflash severity/critical 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.

6 participants