Note
This variable is available starting with V2.2.77.
Description
When a query has a topk hint, the is_result_accurate variable indicates whether the result is accurate.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the values of session system variables.Modify variables
The
systenant and all user tenants can directly modify the values of session system variables in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | ON |
| Value range | |
| Scope | Session |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the is_result_accurate variable to indicate that the result is accurate when a query has a topk hint.
obclient> SET is_result_accurate= ON;