Skip to content

Add BiEngineStatistics to query job statistics #1054

@tswast

Description

@tswast

Some new query statistics have been added, which are present if BI engine is enabled

Suggested implementation

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.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions