Closed liuli12345 closed 5 hours ago
Use shadow SQL Hint is invalid
Use the SQL Hint of data source pass through is valid
Thank you for the feedback, I will investigate it soon
I will fix this bug, thank you for your feedback. @liuli12345
This bug is due to Shadow's incorrect use of SQL Hint. HintValueContext should be used instead of extracting comment from SQLStatement.
After sql hint extracts the key value, in order to improve the hit rate of sql parsing cache, the sql hint comment will be deleted. At this time, the sql hint content cannot be obtained by obtaining comment through SQLStatement.
Hi @liuli12345, can you help test shadow sql hint with master branch?
Version 5.2.1 is good, but after upgrading to version 5.5.0, SQL cannot to be routed to the shadow database data source for execution.
database-shadow.YAML
An example of using shadow SQL Hint: