Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: add documents for QueryPlanEntry and QueryPlanEntryStep (#344)
  • Loading branch information
HemangChothani committed Oct 27, 2020
1 parent c9823d9 commit dca2e4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/reference.rst
Expand Up @@ -59,6 +59,8 @@ Job-Related Types
job.CreateDisposition
job.DestinationFormat
job.Encoding
job.QueryPlanEntry
job.QueryPlanEntryStep
job.QueryPriority
job.SourceFormat
job.WriteDisposition
Expand Down
8 changes: 4 additions & 4 deletions google/cloud/bigquery/job.py
Expand Up @@ -2844,7 +2844,7 @@ def query_plan(self):
https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobStatistics2.FIELDS.query_plan
Returns:
List[QueryPlanEntry]:
List[google.cloud.bigquery.job.QueryPlanEntry]:
mappings describing the query plan, or an empty list
if the query has not yet completed.
"""
Expand Down Expand Up @@ -3418,7 +3418,6 @@ class QueryPlanEntryStep(object):
Args:
kind (str): step type.
substeps (List): names of substeps.
"""

Expand All @@ -3434,7 +3433,8 @@ def from_api_repr(cls, resource):
resource (Dict): JSON representation of the entry.
Returns:
QueryPlanEntryStep: new instance built from the resource.
google.cloud.bigquery.job.QueryPlanEntryStep:
New instance built from the resource.
"""
return cls(kind=resource.get("kind"), substeps=resource.get("substeps", ()))

Expand Down Expand Up @@ -3464,7 +3464,7 @@ def from_api_repr(cls, resource):
ExplainQueryStage representation returned from API.
Returns:
google.cloud.bigquery.QueryPlanEntry:
google.cloud.bigquery.job.QueryPlanEntry:
Query plan entry parsed from ``resource``.
"""
entry = cls()
Expand Down

0 comments on commit dca2e4c

Please sign in to comment.