-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Some new query statistics have been added, which are present if BI engine is enabled
Suggested implementation
- Create two new classes, reflecting the API:
BiEngineStatisticsandBiEngineReason. - Expose the biEngineStatistics property from
JobStatistics2onQueryJob, similar to DmlStats.
API details
Discovery representation for BiEngineStatistics:
"BiEngineStatistics": {
"id": "BiEngineStatistics",
"properties": {
"biEngineMode": {
"description": "[Output-only] Specifies which mode of BI Engine acceleration was performed (if any).",
"type": "string",
"default": "$(stats.bi_engine_mode)"
},
"biEngineReasons": {
"type": "array",
"items": {
"$ref": "BiEngineReason"
},
"description": "In case of DISABLED or PARTIAL bi_engine_mode, these contain the explanatory reasons as to why BI Engine could not accelerate. In case the full query was accelerated, this field is not populated."
}
},
"type": "object"
},
The BiEngineReason discovery representation:
"BiEngineReason": {
"type": "object",
"id": "BiEngineReason",
"properties": {
"code": {
"description": "[Output-only] High-level BI Engine reason for partial or disabled acceleration.",
"default": "$(reason.code)",
"type": "string"
},
"message": {
"description": "[Output-only] Free form human-readable reason for partial or disabled acceleration.",
"type": "string",
"default": "$(reason.message)"
}
}
},
Testing notes
Unit tests are sufficient for this work. Manually testing and/or system testing will be difficult as it requires manual steps to set-up a long-term BI Engine reservation on the project.
Related
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.