Skip to content

Commit 4ab9b83

Browse files
committed
rename to query finished
1 parent 33721ee commit 4ab9b83

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

google/cloud/bigquery/_job_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def do_query():
581581
)
582582

583583
callback(
584-
QueryCompleteEvent(
584+
QueryFinishedEvent(
585585
billing_project=project,
586586
location=query_results.location,
587587
query_id=query_results.query_id,
@@ -674,7 +674,7 @@ def _wait_or_cancel(
674674
timeout=wait_timeout,
675675
)
676676
callback(
677-
QueryCompleteEvent(
677+
QueryFinishedEvent(
678678
billing_project=job.project,
679679
location=query_results.location,
680680
query_id=query_results.query_id,
@@ -697,7 +697,7 @@ def _wait_or_cancel(
697697

698698

699699
@dataclasses.dataclass(frozen=True)
700-
class QueryCompleteEvent:
700+
class QueryFinishedEvent:
701701
"""Query finished successfully."""
702702

703703
billing_project: str

tests/unit/test_client_bigframes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_query_and_wait_bigframes_callback(client):
8282
)
8383
),
8484
mock.call(
85-
_job_helpers.QueryCompleteEvent(
85+
_job_helpers.QueryFinishedEvent(
8686
billing_project=PROJECT,
8787
location=LOCATION,
8888
query_id="abcdefg",
@@ -135,7 +135,7 @@ def test_query_and_wait_bigframes_with_job_callback(client):
135135
)
136136
),
137137
mock.call(
138-
_job_helpers.QueryCompleteEvent(
138+
_job_helpers.QueryFinishedEvent(
139139
billing_project=PROJECT,
140140
location=LOCATION,
141141
query_id="abcdefg",
@@ -193,7 +193,7 @@ def test_query_and_wait_bigframes_with_query_retry_callbacks(client):
193193
)
194194
),
195195
mock.call(
196-
_job_helpers.QueryCompleteEvent(
196+
_job_helpers.QueryFinishedEvent(
197197
billing_project=PROJECT,
198198
location=LOCATION,
199199
query_id=mock.ANY,

0 commit comments

Comments
 (0)