mysql parse can not parse cast function
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed GitHub issues.
- Read documentation: ShardingSphere Doc.
Please pay attention on issues you submitted, because we maybe need more details. If no response more than 7 days and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
4.0.0-RC1-SNAPSHOT
Which project did you use? Sharding-JDBC or Sharding-Proxy?
Sharding-Proxy
Expected behavior
Execute this SQL routing correctly select cast(order_id as varchar) from t_order
Actual behavior
routing to random datasource
Reason analyze (If you can)
anltr mysql not support cast function
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
select cast(order_id as varchar) from t_order
Example codes for reproduce this issue (such as a github link).
cast function Syntax is different with other general function, it was fixed
fixed at #2038