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

TiDB expression index allows row function #18150

Closed
wjhuang2016 opened this issue Jun 20, 2020 · 7 comments · Fixed by #18125 or #19987
Closed

TiDB expression index allows row function #18150

wjhuang2016 opened this issue Jun 20, 2020 · 7 comments · Fixed by #18125 or #19987
Labels
challenge-program help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@wjhuang2016
Copy link
Member

wjhuang2016 commented Jun 20, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> CREATE TABLE t (j JSON, KEY k (((j,j))));
Query OK, 0 rows affected (0.01 sec)

In MySQL:

mysql> CREATE TABLE t (j JSON, KEY k (((j,j))));
ERROR 3800 (HY000): Expression of functional index 'k' cannot refer to a row value.

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

3. What did you see instead (Required)

4. Affected version (Required)

Score

50

SIG Slack Channel

You can join #sig-ddl on slack in your spare time to discuss and get help with mentors or others.

Mentor(s)

Recommended Skills

  • DDL

Learning Materials

N/A

@wjhuang2016 wjhuang2016 added the type/bug The issue is confirmed as a bug. label Jun 20, 2020
@wjhuang2016 wjhuang2016 added sig/sql-infra SIG: SQL Infra help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jun 21, 2020
@wjhuang2016 wjhuang2016 reopened this Sep 10, 2020
@wangggong
Copy link
Contributor

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

@wangggong You did not submit PR within 7 days, so give up automatically.

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 20, 2020
@wangggong
Copy link
Contributor

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@sre-bot
Copy link
Contributor

sre-bot commented Oct 9, 2020

Integrity check:
RCA symptom trigger_condition affect_version fix_version fields are empty

Please comment /info to get template

@ti-srebot
Copy link
Contributor

ti-srebot commented Oct 9, 2020

Please edit this 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)

Didn't forbid row() function.

2. Symptom

Expression index allows row function

row function, expression index.

3. All Trigger Conditions

row function, expression index.

4. Workaround (optional)

5. Affected versions

[v4.0.0:v4.0.99]

6. Fixed versions

unplanned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge-program help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
5 participants