Skip to content

Commit 2542bd3

Browse files
authored
chore: fix minor typos (#1820)
1 parent 30f304b commit 2542bd3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

google/cloud/bigquery/_job_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555

5656
# The purpose of _TIMEOUT_BUFFER_MILLIS is to allow the server-side timeout to
57-
# happen before the client-side timeout. This is not strictly neccessary, as the
57+
# happen before the client-side timeout. This is not strictly necessary, as the
5858
# client retries client-side timeouts, but the hope by making the server-side
5959
# timeout slightly shorter is that it can save the server from some unncessary
6060
# processing time.

google/cloud/bigquery/magics/magics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def _handle_error(error, destination_var=None):
288288
289289
Args:
290290
error (Exception):
291-
An exception that ocurred during the query execution.
291+
An exception that occurred during the query execution.
292292
destination_var (Optional[str]):
293293
The name of the IPython session variable to store the query job.
294294
"""

google/cloud/bigquery/opentelemetry_tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _get_final_span_attributes(attributes=None, client=None, job_ref=None):
9090
"""Compiles attributes from: client, job_ref, user-provided attributes.
9191
9292
Attributes from all of these sources are merged together. Note the
93-
attributes are added sequentially based on perceived order of precendence:
93+
attributes are added sequentially based on perceived order of precedence:
9494
i.e. attributes added last may overwrite attributes added earlier.
9595
9696
Args:

tests/system/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def test_query_error_w_api_method_default(bigquery_client: bigquery.Client):
477477
"""Test that an exception is not thrown until fetching the results.
478478
479479
For backwards compatibility, jobs.insert is the default API method. With
480-
jobs.insert, a failed query job is "sucessfully" created. An exception is
480+
jobs.insert, a failed query job is "successfully" created. An exception is
481481
thrown when fetching the results.
482482
"""
483483

tests/unit/test__job_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def test_query_and_wait_caches_completed_query_results_one_page():
711711
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
712712
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
713713
],
714-
# Even though totalRows > len(rows), we should use the presense of a
714+
# Even though totalRows > len(rows), we should use the presence of a
715715
# next page token to decide if there are any more pages.
716716
"totalRows": 8,
717717
}
@@ -828,7 +828,7 @@ def test_query_and_wait_caches_completed_query_results_more_pages():
828828
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
829829
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
830830
],
831-
# Even though totalRows <= len(rows), we should use the presense of a
831+
# Even though totalRows <= len(rows), we should use the presence of a
832832
# next page token to decide if there are any more pages.
833833
"totalRows": 2,
834834
"pageToken": "page-2",
@@ -981,7 +981,7 @@ def test_query_and_wait_incomplete_query():
981981
{"f": [{"v": "Phred Phlyntstone"}, {"v": "32"}]},
982982
{"f": [{"v": "Bharney Rhubble"}, {"v": "33"}]},
983983
],
984-
# Even though totalRows <= len(rows), we should use the presense of a
984+
# Even though totalRows <= len(rows), we should use the presence of a
985985
# next page token to decide if there are any more pages.
986986
"totalRows": 2,
987987
"pageToken": "page-2",

0 commit comments

Comments
 (0)