QUERY_HISTORY views and function: New columns in output (Preview)¶
Attention
This behavior change is in the 2025_06 bundle.
For the current status of the bundle, refer to Bundle History.
When this behavior change bundle is enabled, the ACCOUNT_USAGE QUERY_HISTORY view, the ORGANIZATION_USAGE QUERY_HISTORY view, and the output of the QUERY_HISTORY table function include the following new columns:
Column name |
Data type |
Description |
---|---|---|
|
NUMBER |
ID for the event for the authentication of the user for this query. This ID corresponds to the value in the Note This column appears between the If you have queries that rely on the order of the columns in this view, you need to update those queries to account for the new column. |
|
VARIANT |
Values of bind variables used in this query. The column contains an OBJECT value. The value contains a key-value pair, where the key is the name of the bind variable and the value is another OBJECT value with the following key-value pairs:
For example: {
"model_name": {
"type": "TEXT",
"value": "mistral-large2"
}
}
This column appears after the last column in the view ( If you don’t want bind values to be accessible to users, set the ALLOW_BIND_VALUES_ACCESS account-level parameter to FALSE: ALTER ACCOUNT SET ALLOW_BIND_VALUES_ACCESS = FALSE;
|
Ref: 1980, 2050