Open foolishlittlefox opened 1 year ago
All query must include the sharding key.
You have used ymd
column as the sharding key, but there is not include in there where
conditions.
This is the complete sql statement
SELECT * FROM t_chat_msg WHERE ymd = 202311 AND to = '1025359' AND (MATCH(body) AGAINST('在' IN BOOLEAN MODE)) LIMIT 20
I found that it should be caused by the sqlparser package not being able to correctly parse SQL statements.
It should be that this statement was not parsed successfully. expr, err := sqlparser.NewParser(strings.NewReader(query)).ParseStatement()
@hyperphoton 这个应该是 SQLParser 解析不了
can not fond table