Skip to content

Commit 80e91b5

Browse files
plamuttswast
andauthored
chore: Release v2.0.0 (#64)
* chore: release v2.0.0 * Update CHANGELOG.md * Replace PROJECT_ID with GOOGLE_CLOUD_PROJECT in test * Do not add google.cloud.bigquery as namespace package * Install the library as non-editable in tests This avoids import errors from google.cloud.bigquery.* namespace. * Fix test coverage plugin paths * Regenerate code with different namespace (bigquery_storage) * Adjust import paths to bigquery_storage namespace * Adjust docs to bigquery_storage namespace * Adjust UPGRADING guide to changed namespace Co-authored-by: Tim Swast <[email protected]>
1 parent 030276c commit 80e91b5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bigquery_storage/quickstart/quickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
def main(project_id="your-project-id", snapshot_millis=0):
1919
# [START bigquerystorage_quickstart]
20-
from google.cloud.bigquery.storage import BigQueryReadClient
21-
from google.cloud.bigquery.storage import types
20+
from google.cloud.bigquery_storage import BigQueryReadClient
21+
from google.cloud.bigquery_storage import types
2222

2323
# TODO(developer): Set the project_id variable.
2424
# project_id = 'your-project-id'

bigquery_storage/quickstart/quickstart_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def now_millis():
2929

3030
@pytest.fixture()
3131
def project_id():
32-
return os.environ["PROJECT_ID"]
32+
return os.environ["GOOGLE_CLOUD_PROJECT"]
3333

3434

3535
def test_quickstart_wo_snapshot(capsys, project_id):

bigquery_storage/to_dataframe/main_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def clients():
2121
# [START bigquerystorage_pandas_tutorial_create_client]
2222
import google.auth
2323
from google.cloud import bigquery
24-
from google.cloud.bigquery import storage
24+
from google.cloud import bigquery_storage
2525

2626
# Explicitly create a credentials object. This allows you to use the same
2727
# credentials for both the BigQuery and BigQuery Storage clients, avoiding
@@ -32,7 +32,7 @@ def clients():
3232

3333
# Make clients.
3434
bqclient = bigquery.Client(credentials=credentials, project=your_project_id,)
35-
bqstorageclient = storage.BigQueryReadClient(credentials=credentials)
35+
bqstorageclient = bigquery_storage.BigQueryReadClient(credentials=credentials)
3636
# [END bigquerystorage_pandas_tutorial_create_client]
3737
# [END bigquerystorage_pandas_tutorial_all]
3838
return bqclient, bqstorageclient
@@ -96,7 +96,7 @@ def test_query_to_dataframe(capsys, clients):
9696

9797

9898
def test_session_to_dataframe(capsys, clients):
99-
from google.cloud.bigquery.storage import types
99+
from google.cloud.bigquery_storage import types
100100

101101
bqclient, bqstorageclient = clients
102102
your_project_id = bqclient.project

0 commit comments

Comments
 (0)