GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: Prepare for 2.0 release by plamut · Pull Request #278 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@plamut

@plamut plamut commented Sep 25, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR should serve as a preview of the 2.0 release.

For a start, the BQ Storage v1beta1 compatibility code is removed, as it will not be needed anymore once BQ Storage v2.0.0 is released.

TODO list:

  • Fix import paths in tests and samples that are affected by bigquery_v2 changes.
  • Describe bigquery_v2 changes in UPGRADING guide.
  • Fix docs, include bigquery_v2 in them, if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 25, 2020
@plamut plamut mentioned this pull request Sep 25, 2020
chore: Release v2.0.0 googleapis/python-bigquery-storage#64
Merged
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 26, 2020
@plamut
plamut force-pushed the prepare-for-2-0 branch from ace6762 to 8795ec8 Compare September 27, 2020 16:26
plamut added 7 commits September 28, 2020 19:43
@plamut
Remove BQ Storage v1beta1 compatibility code
620724e
@plamut
Adjust code to new BQ Storage 2.0
94345ae
@plamut
Remove Python 2/3 compatibility code
f5d9403
@plamut
Bump test coverage to 100%
c2eb9b7
@plamut
Update supported Python versions in README
13908c3
@plamut
Add UPGRADING guide.
62fa539
@plamut
Regenerate bigquery_v2 code with microgenerator
94c50cf
@plamut
plamut force-pushed the prepare-for-2-0 branch from 74257b1 to 94c50cf Compare September 28, 2020 17:46
@tswast tswast mentioned this pull request Sep 29, 2020
Feature Request: allow clients to act as context manager and add close() method to cleanup resources googleapis/gapic-generator-python#575
Closed
@plamut plamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 29, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 29, 2020
@plamut

plamut commented Sep 29, 2020

Copy link
Copy Markdown
Contributor Author

BQ Storage 2.0.0 released, re-running.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast
tswast reviewed Sep 29, 2020
View reviewed changes
Comment thread setup.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread UPGRADING.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/bigquery_v2/services.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/bigquery/dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/bigquery_v2/types.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/bigquery/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/bigquery_v2/services/__init__.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/test_dbapi_connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 29, 2020
chore(deps): update dependency google-cloud-bigquery-storage to v2 #282
Closed
feat: add constants for MONTH and YEAR time partitioning types #283
Merged
This was referenced Sep 30, 2020
samples.to_dataframe.main_test: test_query_to_dataframe failed googleapis/python-bigquery-storage#71
Closed
samples.to_dataframe.main_test: test_table_to_dataframe failed googleapis/python-bigquery-storage#70
Closed
samples.to_dataframe.jupyter_test: test_jupyter_tutorial failed googleapis/python-bigquery-storage#69
Closed
samples.to_dataframe.jupyter_test: test_jupyter_small_query failed googleapis/python-bigquery-storage#68
Closed
@plamut
Adjust hand-written unit tests to regened BQ v2
68328c3
plamut
plamut commented Sep 30, 2020
View reviewed changes
Comment thread tests/unit/enums/test_standard_sql_data_types.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@plamut

plamut commented Sep 30, 2020

Copy link
Copy Markdown
Contributor Author

FWIW, the snippets tests in samples/snippets fail because the generated noxfile tries to install BigQuery v1.x, but the snippets require v2.0.0 that is still in the making. They pass locally if INSTALL_LIBRARY_FROM_SOURCE env variable is set and the following patch is applied:

diff --git samples/snippets/noxfile.py samples/snippets/noxfile.py
index 5660f08..66589f5 100644
--- samples/snippets/noxfile.py
+++ samples/snippets/noxfile.py
@@ -158,14 +158,17 @@ def _session_tests(session, post_install=None):
         session.install("-r", "requirements-test.txt")
 
     if INSTALL_LIBRARY_FROM_SOURCE:
-        session.install("-e", _get_repo_root())
+        session.install("-e", _get_repo_root() + "[all]")
 
     if post_install:
         post_install(session)
 
diff --git samples/snippets/requirements.txt samples/snippets/requirements.txt
index 7fe8391..4753c47 100644
--- samples/snippets/requirements.txt
+++ samples/snippets/requirements.txt
@@ -1,4 +1,4 @@
-google-cloud-bigquery[pandas,bqstorage,pyarrow]==1.26.1
+# google-cloud-bigquery[pandas,bqstorage,pyarrow]==1.26.1
 google-auth-oauthlib==0.4.1
 ipython==7.16.1; python_version < '3.7'
 ipython==7.17.0; python_version >= '3.7'
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

plamut added 2 commits September 30, 2020 16:00
@plamut
Adjust samples to BQ v2 regenerated code
9b26cf9
@plamut
Adjust system tests to regenerated BQ v2
eb3354c
@tswast tswast mentioned this pull request Sep 30, 2020
enum classes are missing docstrings googleapis/gapic-generator-python#625
Closed
@tswast

tswast commented Sep 30, 2020

Copy link
Copy Markdown
Contributor

They pass locally if INSTALL_LIBRARY_FROM_SOURCE env variable is set and the following patch is applied:

Do we need to add the necessary extras to requirements.txt?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@plamut
Skip failing generated unit test
40eddb7
The assertion seems to fail for a banal reason, i.e. an extra newline
in the string representation.
@tswast

tswast commented Sep 30, 2020

Copy link
Copy Markdown
Contributor

Since it looks like requirements.txt is used to install packages, even when INSTALL_LIBRARY_FROM_SOURCE is set, I'm a bit confused as to why pandas isn't getting installed.

python-bigquery/samples/snippets/noxfile.py

Line 155 in fbbe0cb

session.install("-r", "requirements.txt")

Maybe I missed some logic that filters out google-cloud-bigquery[pandas,...] from that installation?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@plamut

plamut commented Sep 30, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@tswast Ah, I think that's probably because I temporarily commented out the google-cloud-python line from requirements.txt completely, I just wanted to test with a local version of the library.

(and then had to adjust the installation from source line in noxfile to actually get all those extras installed)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

plamut added 6 commits September 30, 2020 17:11
@plamut
Delete Kokoro config for Python 2.7
f490218
@plamut
Fix docs build
755ff95
@plamut
Undelete failing test, but mark as skipped
045596e
@plamut
Fix namespace name in docstrings and comments
ecbf475
@plamut
Define minimum dependency versions for Python 3.6
e39fda2
@plamut
Exclude autogenerated docs from docs index
49b06a4
plamut
plamut commented Sep 30, 2020
View reviewed changes
Comment thread testing/constraints-3.6.txt Resolved

Uh oh!

There was an error while loading. Please reload this page.

plamut
plamut commented Sep 30, 2020
View reviewed changes
Comment thread testing/constraints-3.6.txt Resolved

Uh oh!

There was an error while loading. Please reload this page.

@plamut
plamut marked this pull request as ready for review September 30, 2020 17:36
@plamut
plamut requested a review from a team September 30, 2020 17:36
@plamut
plamut requested a review from a team as a code owner September 30, 2020 17:36
@plamut
plamut requested a review from dinagraves September 30, 2020 17:36
@plamut
Exclude generated services from the library
7a4084e
There are currently no public API endpoints for the ModelServiceClient,
thus there is no point in generating that code in the first place.
@plamut
plamut force-pushed the prepare-for-2-0 branch from e31d97a to 7a4084e Compare September 30, 2020 18:18
plamut added 2 commits September 30, 2020 21:11
@plamut
Bump minumum proto-plus version to 1.10.0
64d6660
The old pin (1.4.0) does not work, tests detected some problem.
@plamut
Include generated types in the docs and rebuild
73c2da8
tswast
tswast reviewed Sep 30, 2020
View reviewed changes
Comment thread testing/constraints-3.6.txt Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/bigquery_v2/services.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/reference.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@plamut
Ignore skipped test in coverage check
c976ce5
tswast
tswast reviewed Sep 30, 2020
View reviewed changes
Comment thread google/cloud/bigquery/model.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

tswast
tswast approved these changes Sep 30, 2020
View reviewed changes
@plamut
Explain moved enums in UPGRADING guide
2690ec7
tswast
tswast approved these changes Sep 30, 2020
View reviewed changes
@crwilcox

crwilcox commented Sep 30, 2020

Copy link
Copy Markdown
Contributor

Hammer merging to work around sample tests.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crwilcox
crwilcox merged commit cbcb4b8 into googleapis:master Sep 30, 2020
@plamut

plamut commented Sep 30, 2020

Copy link
Copy Markdown
Contributor Author

@crwilcox Thanks!

Release PR (#284) will probably need the same hammer love.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@plamut
plamut deleted the prepare-for-2-0 branch September 30, 2020 22:52
@plamut plamut mentioned this pull request Oct 1, 2020
Transition the library to the new microgenerator #147
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@dinagraves dinagraves Awaiting requested review from dinagraves
1 more reviewer
@tswast tswast tswast approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@plamut @tswast @crwilcox @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.