google.cloud.bigquery.job.QueryPlanEntry¶
-
class
google.cloud.bigquery.job.
QueryPlanEntry
[source]¶ QueryPlanEntry represents a single stage of a query execution plan.
See https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#ExplainQueryStage for the underlying API representation within query statistics.
Methods
__init__
()Initialize self.
from_api_repr
(resource)Factory: construct instance from the JSON repr.
Attributes
Number of parallel input segments completed.
Milliseconds the average worker spent on CPU-bound processing.
Milliseconds the slowest worker spent on CPU-bound processing.
Ratio of time the average worker spent on CPU-bound processing, relative to the longest time spent by any worker in any stage of the overall plan.
Ratio of time the slowest worker spent on CPU-bound processing, relative to the longest time spent by any worker in any stage of the overall plan.
Datetime when the stage ended.
Unique ID for the stage within the plan.
Entry IDs for stages that were inputs for this stage.
Human-readable name of the stage.
Number of parallel input segments within the stage.
Milliseconds the average worker spent reading input.
Milliseconds the slowest worker spent reading input.
Ratio of time the average worker spent reading input, relative to the longest time spent by any worker in any stage of the overall plan.
Ratio of time the slowest worker spent reading to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
Number of records read by this stage.
Number of records written by this stage.
Number of bytes written by this stage to intermediate shuffle.
Number of bytes written by this stage to intermediate shuffle and spilled to disk.
Datetime when the stage started.
status of this stage.
List of step operations performed by each worker in the stage.
Milliseconds the average worker spent waiting to be scheduled.
Milliseconds the slowest worker spent waiting to be scheduled.
Ratio of time the average worker spent waiting to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
Ratio of time the slowest worker spent waiting to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
Milliseconds the average worker spent writing output data.
Milliseconds the slowest worker spent writing output data.
Ratio of time the average worker spent writing output data, relative to the longest time spent by any worker in any stage of the overall plan.
Ratio of time the slowest worker spent writing output data, relative to the longest time spent by any worker in any stage of the overall plan.
-
property
compute_ms_avg
¶ Milliseconds the average worker spent on CPU-bound processing.
- Type
Optional[int]
-
property
compute_ms_max
¶ Milliseconds the slowest worker spent on CPU-bound processing.
- Type
Optional[int]
-
property
compute_ratio_avg
¶ Ratio of time the average worker spent on CPU-bound processing, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
compute_ratio_max
¶ Ratio of time the slowest worker spent on CPU-bound processing, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
end
¶ Datetime when the stage ended.
- Type
Optional[Datetime]
-
classmethod
from_api_repr
(resource)[source]¶ Factory: construct instance from the JSON repr.
- Parameters
resource(Dict[str – object]): ExplainQueryStage representation returned from API.
- Returns
Query plan entry parsed from
resource
.- Return type
-
property
read_ratio_avg
¶ Ratio of time the average worker spent reading input, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
read_ratio_max
¶ Ratio of time the slowest worker spent reading to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
shuffle_output_bytes
¶ Number of bytes written by this stage to intermediate shuffle.
- Type
Optional[int]
-
property
shuffle_output_bytes_spilled
¶ Number of bytes written by this stage to intermediate shuffle and spilled to disk.
- Type
Optional[int]
-
property
start
¶ Datetime when the stage started.
- Type
Optional[Datetime]
-
property
steps
¶ List of step operations performed by each worker in the stage.
- Type
List(QueryPlanEntryStep)
-
property
wait_ms_avg
¶ Milliseconds the average worker spent waiting to be scheduled.
- Type
Optional[int]
-
property
wait_ms_max
¶ Milliseconds the slowest worker spent waiting to be scheduled.
- Type
Optional[int]
-
property
wait_ratio_avg
¶ Ratio of time the average worker spent waiting to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
wait_ratio_max
¶ Ratio of time the slowest worker spent waiting to be scheduled, relative to the longest time spent by any worker in any stage of the overall plan.
- Type
Optional[float]
-
property
write_ms_avg
¶ Milliseconds the average worker spent writing output data.
- Type
Optional[int]
-
property
write_ms_max
¶ Milliseconds the slowest worker spent writing output data.
- Type
Optional[int]
-
property