Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[olap mode] Add a construct to check if a connection has olap enabled #6171
Comments
|
Suggestion -- instead of supporting the ability to query the workload I think it'd be nicer if we could make The suggested approach means users will need to introduce an extra round trip that shouldn't strictly be necessary. |
|
agreed -- i like that, too |
|
Seems to me like we want both the ability to figure out the workload and also make the repeated |
Support is added looks like need to fix select @@workload when it is not set. |


Feature Description
Today, if you enable olap mode on a connection, there is no way to query vitess on that same connection to check if it's been enabled. It would be great to be able to do something along the lines of:
in order to avoid trying to set olap multiple times on the same connection and getting the following error:
Use Case(s)
setqueries than necessary