Closed jackysp closed 1 year ago
https://docs.oracle.com/cd/E18283_01/server.112/e16638/hintsref.htm#i27644
We can impl the same grammar mentioned in this chapter. It's a reasonable solution that is not hard to impl. But we need to extend our parser to support the grammar.
The current
// HintTable is table in the hint. It may have query block info.
type HintTable struct {
DBName model.CIStr
TableName model.CIStr
QBName model.CIStr
PartitionList []model.CIStr
}
should become
// HintTable is table in the hint. It may have query block info.
type HintTable struct {
DBName model.CIStr
TableName model.CIStr
QBNameList []model.CIStr
PartitionList []model.CIStr
}
Not only the index hint, we will fail if we want to use hint to choose the physical algorithm of join/agg. Thus, modify the title of the issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql --connect-timeout 15 -u '3sDg3oSF1k7eu15.root' -h [gateway01.ap-northeast-1.prod.aws.tidbcloud.com](http://gateway01.ap-northeast-1.prod.aws.tidbcloud.com/) -P 4000 -D test -p
You can use your own tidb-cloud dev_tier.
2. What did you expect to see? (Required)
The plan should use index
index_github_events_on_actor_id
.3. What did you see instead (Required)
4. What is your TiDB version? (Required)
796fb1f0a48dc2d5acc9943bd6f42af9ccef2c0d