Open derekperkins opened 11 months ago
@derekperkins Any chance you could share the query that is breaking vtgate?
There's a test here for recursive queries https://github.com/grafana/grafana/blob/main/pkg/services/sqlstore/sqlstore.go#L363-L392
And a comment about how it relates to Vitess https://github.com/grafana/grafana/issues/73725#issuecomment-1793547863
I submitted a PR based on that comment, hopefully they accept it and it works
Still trying to get this to work. There has been no movement on the original PR.
This has been longer coming, but go-sql-driver/mysql
just released a new version that supports a /
in the db name. I also have a PR into Grafana to use that new dependency, so that I can use shard targeting to allow the recursive queries to execute, which should be more reliable long-term.
We've used Vitess for Grafana persistence for several years, but after upgrading to v10, certain functionality including dashboard list/search fails due to usage of CTEs. This is a known issue, I just wanted to call this out specifically since we have tracked compatibility with major projects in the past. Feel free to close if it isn't useful, but it'll at least help anyone searching.
"Search failed" error="Error 1235: unsupported: with expression in select statement"
Related issues: