Skip to content

Commit

Permalink
chore: fix minor typos (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 21, 2024
1 parent 30f304b commit 2542bd3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion google/cloud/bigquery/_job_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@


# The purpose of _TIMEOUT_BUFFER_MILLIS is to allow the server-side timeout to
# happen before the client-side timeout. This is not strictly neccessary, as the
# happen before the client-side timeout. This is not strictly necessary, as the
# client retries client-side timeouts, but the hope by making the server-side
# timeout slightly shorter is that it can save the server from some unncessary
# processing time.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/magics/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _handle_error(error, destination_var=None):
Args:
error (Exception):
An exception that ocurred during the query execution.
An exception that occurred during the query execution.
destination_var (Optional[str]):
The name of the IPython session variable to store the query job.
"""
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/opentelemetry_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_final_span_attributes(attributes=None, client=None, job_ref=None):
"""Compiles attributes from: client, job_ref, user-provided attributes.
Attributes from all of these sources are merged together. Note the
attributes are added sequentially based on perceived order of precendence:
attributes are added sequentially based on perceived order of precedence:
i.e. attributes added last may overwrite attributes added earlier.
Args:
Expand Down
2 changes: 1 addition & 1 deletion tests/system/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def test_query_error_w_api_method_default(bigquery_client: bigquery.Client):
"""Test that an exception is not thrown until fetching the results.
For backwards compatibility, jobs.insert is the default API method. With
jobs.insert, a failed query job is "sucessfully" created. An exception is
jobs.insert, a failed query job is "successfully" created. An exception is
thrown when fetching the results.
"""

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test__job_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def test_query_and_wait_caches_completed_query_results_one_page():
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
],
# Even though totalRows > len(rows), we should use the presense of a
# Even though totalRows > len(rows), we should use the presence of a
# next page token to decide if there are any more pages.
"totalRows": 8,
}
Expand Down Expand Up @@ -828,7 +828,7 @@ def test_query_and_wait_caches_completed_query_results_more_pages():
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
],
# Even though totalRows <= len(rows), we should use the presense of a
# Even though totalRows <= len(rows), we should use the presence of a
# next page token to decide if there are any more pages.
"totalRows": 2,
"pageToken": "page-2",
Expand Down Expand Up @@ -981,7 +981,7 @@ def test_query_and_wait_incomplete_query():
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
],
# Even though totalRows <= len(rows), we should use the presense of a
# Even though totalRows <= len(rows), we should use the presence of a
# next page token to decide if there are any more pages.
"totalRows": 2,
"pageToken": "page-2",
Expand Down

0 comments on commit 2542bd3

Please sign in to comment.