Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-bigquery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.21.0
Choose a base ref
...
head repository: googleapis/python-bigquery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.22.0
Choose a head ref
  • 14 commits
  • 39 files changed
  • 7 contributors

Commits on Jul 13, 2021

  1. chore(deps): update dependency google-cloud-bigquery to v2.21.0 (#755)

    [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==2.20.0` -> `==2.21.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.21.0/compatibility-slim/2.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.21.0/confidence-slim/2.20.0)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>googleapis/python-bigquery</summary>
    
    ### [`v2.21.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;2210-httpswwwgithubcomgoogleapispython-bigquerycomparev2200v2210-2021-07-12)
    
    ##### Features
    
    -   Add max_results parameter to some of the `QueryJob` methods. ([#&#8203;698](https://www.github.com/googleapis/python-bigquery/issues/698)) ([2a9618f](https://www.github.com/googleapis/python-bigquery/commit/2a9618f4daaa4a014161e1a2f7376844eec9e8da))
    -   Add support for decimal target types. ([#&#8203;735](https://www.github.com/googleapis/python-bigquery/issues/735)) ([7d2d3e9](https://www.github.com/googleapis/python-bigquery/commit/7d2d3e906a9eb161911a198fb925ad79de5df934))
    -   Add support for table snapshots. ([#&#8203;740](https://www.github.com/googleapis/python-bigquery/issues/740)) ([ba86b2a](https://www.github.com/googleapis/python-bigquery/commit/ba86b2a6300ae5a9f3c803beeb42bda4c522e34c))
    -   Enable unsetting policy tags on schema fields. ([#&#8203;703](https://www.github.com/googleapis/python-bigquery/issues/703)) ([18bb443](https://www.github.com/googleapis/python-bigquery/commit/18bb443c7acd0a75dcb57d9aebe38b2d734ff8c7))
    -   Make it easier to disable best-effort deduplication with streaming inserts. ([#&#8203;734](https://www.github.com/googleapis/python-bigquery/issues/734)) ([1246da8](https://www.github.com/googleapis/python-bigquery/commit/1246da86b78b03ca1aa2c45ec71649e294cfb2f1))
    -   Support passing struct data to the DB API. ([#&#8203;718](https://www.github.com/googleapis/python-bigquery/issues/718)) ([38b3ef9](https://www.github.com/googleapis/python-bigquery/commit/38b3ef96c3dedc139b84f0ff06885141ae7ce78c))
    
    ##### Bug Fixes
    
    -   Inserting non-finite floats with `insert_rows()`. ([#&#8203;728](https://www.github.com/googleapis/python-bigquery/issues/728)) ([d047419](https://www.github.com/googleapis/python-bigquery/commit/d047419879e807e123296da2eee89a5253050166))
    -   Use `pandas` function to check for `NaN`. ([#&#8203;750](https://www.github.com/googleapis/python-bigquery/issues/750)) ([67bc5fb](https://www.github.com/googleapis/python-bigquery/commit/67bc5fbd306be7cdffd216f3791d4024acfa95b3))
    
    ##### Documentation
    
    -   Add docs for all enums in module. ([#&#8203;745](https://www.github.com/googleapis/python-bigquery/issues/745)) ([145944f](https://www.github.com/googleapis/python-bigquery/commit/145944f24fedc4d739687399a8309f9d51d43dfd))
    -   Omit mention of Python 2.7 in `CONTRIBUTING.rst`. ([#&#8203;706](https://www.github.com/googleapis/python-bigquery/issues/706)) ([27d6839](https://www.github.com/googleapis/python-bigquery/commit/27d6839ee8a40909e4199cfa0da8b6b64705b2e9))
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.
    
    ---
    
    This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-bigquery).
    renovate-bot authored Jul 13, 2021
    Configuration menu
    Copy the full SHA
    dea92d3 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. build(python): exit with success status if no samples found (#759)

    Source-Link: googleapis/synthtool@53ea389
    Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c
    gcf-owl-bot[bot] authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    481b864 View commit details
    Browse the repository at this point in the history
  2. chore: release 2.21.0 (#760)

    🤖 I have created a release \*beep\* \*boop\*
    ---
    ## [2.21.0](https://www.github.com/googleapis/python-bigquery/compare/v2.20.0...v2.21.0) (2021-07-14)
    
    
    ### Features
    
    * add always_use_jwt_access ([#714](https://www.github.com/googleapis/python-bigquery/issues/714)) ([92fbd4a](https://www.github.com/googleapis/python-bigquery/commit/92fbd4ade37e0be49dc278080ef73c83eafeea18))
    * add max_results parameter to some of the QueryJob methods ([#698](https://www.github.com/googleapis/python-bigquery/issues/698)) ([2a9618f](https://www.github.com/googleapis/python-bigquery/commit/2a9618f4daaa4a014161e1a2f7376844eec9e8da))
    * add support for decimal target types ([#735](https://www.github.com/googleapis/python-bigquery/issues/735)) ([7d2d3e9](https://www.github.com/googleapis/python-bigquery/commit/7d2d3e906a9eb161911a198fb925ad79de5df934))
    * add support for table snapshots ([#740](https://www.github.com/googleapis/python-bigquery/issues/740)) ([ba86b2a](https://www.github.com/googleapis/python-bigquery/commit/ba86b2a6300ae5a9f3c803beeb42bda4c522e34c))
    * enable unsetting policy tags on schema fields ([#703](https://www.github.com/googleapis/python-bigquery/issues/703)) ([18bb443](https://www.github.com/googleapis/python-bigquery/commit/18bb443c7acd0a75dcb57d9aebe38b2d734ff8c7))
    * make it easier to disable best-effort deduplication with streaming inserts ([#734](https://www.github.com/googleapis/python-bigquery/issues/734)) ([1246da8](https://www.github.com/googleapis/python-bigquery/commit/1246da86b78b03ca1aa2c45ec71649e294cfb2f1))
    * Support passing struct data to the DB API ([#718](https://www.github.com/googleapis/python-bigquery/issues/718)) ([38b3ef9](https://www.github.com/googleapis/python-bigquery/commit/38b3ef96c3dedc139b84f0ff06885141ae7ce78c))
    
    
    ### Bug Fixes
    
    * inserting non-finite floats with insert_rows() ([#728](https://www.github.com/googleapis/python-bigquery/issues/728)) ([d047419](https://www.github.com/googleapis/python-bigquery/commit/d047419879e807e123296da2eee89a5253050166))
    * use pandas function to check for NaN ([#750](https://www.github.com/googleapis/python-bigquery/issues/750)) ([67bc5fb](https://www.github.com/googleapis/python-bigquery/commit/67bc5fbd306be7cdffd216f3791d4024acfa95b3))
    
    
    ### Documentation
    
    * add docs for all enums in module ([#745](https://www.github.com/googleapis/python-bigquery/issues/745)) ([145944f](https://www.github.com/googleapis/python-bigquery/commit/145944f24fedc4d739687399a8309f9d51d43dfd))
    * omit mention of Python 2.7 in `CONTRIBUTING.rst` ([#706](https://www.github.com/googleapis/python-bigquery/issues/706)) ([27d6839](https://www.github.com/googleapis/python-bigquery/commit/27d6839ee8a40909e4199cfa0da8b6b64705b2e9))
    ---
    
    
    This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
    release-please[bot] authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    5437d44 View commit details
    Browse the repository at this point in the history
  3. build(python): remove python 3.7 from kokoro Dockerfile (#762)

    Source-Link: googleapis/synthtool@e44dc0c
    Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:5ff7446edeaede81c3ed58b23a4e76a5403fba1350ce28478045657303b6479d
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    5deef6f View commit details
    Browse the repository at this point in the history
  4. fix: avoid possible job already exists error (#751)

    * fix: avoid possible job already exists error
    
    If job create request fails, a query job might still have started
    successfully. This commit handles this edge case and returns such
    query job one can be found.
    
    * Catch only Conflict errors on query job create
    plamut authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    45b9308 View commit details
    Browse the repository at this point in the history
  5. chore: expand range to allow 2.x versions (#768)

    api-core, cloud-core, and resumable-media wil all be releasing Python3-only
    2.x versions shortly.
    
    Closes #767.
    tseaver authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    2bb8de6 View commit details
    Browse the repository at this point in the history
  6. deps: allow 2.x versions of google-api-core, google-cloud-core, `…

    …google-resumable-media` (#770)
    
    **Note**: PR is empty because this is purely to make sure CHANGELOG is updated. Follow-up to #768
    
    Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
    - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
    - [ ] Ensure the tests and linter pass
    - [ ] Code coverage does not decrease (if any source code was changed)
    - [ ] Appropriate docs were updated (if necessary)
    
    Fixes #767  🦕
    tswast authored Jul 14, 2021
    Configuration menu
    Copy the full SHA
    87a09fa View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. feat: add LoadJobConfig.projection_fields to select DATASTORE_BACKU…

    …P fields (#736)
    
    * feat: add LoadJobConfig.projection_fields to select DATASTORE_BACKUP fields
    
    * add type annotations
    
    * annotate setter too
    
    Co-authored-by: Peter Lamut <[email protected]>
    tswast and plamut authored Jul 15, 2021
    Configuration menu
    Copy the full SHA
    c45a738 View commit details
    Browse the repository at this point in the history
  2. feat: add support for more detailed DML stats (#758)

    * feat: add support for more detailed DML stats
    
    * Move is None check of DmlStats one level higher
    plamut authored Jul 15, 2021
    Configuration menu
    Copy the full SHA
    36fe86f View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. refactor: omit read_session with latest google-cloud-bigquery-stora…

    …ge (#748)
    
    * refactor: omit `read_session` with latest google-cloud-bigquery-storage
    
    `read_session` is unnecessary as of `google-cloud-bigquery-storage>=2.6.0`.
    This will allow us to more loudly deprecate the use of `rows(read_session)`.
    
    Rather than require 2.6.0, version switches will allow us to keep our
    requirements range wider. Will want to give this version some time to bake
    before making it required.
    
    * optimize _verify_bq_storage_version
    
    * fix failing tests due to optimization
    
    * fix unit tests
    
    * create BQStorageVersions class for version comparisons
    
    * add type annotations
    
    Also, use packaging directly, since that's all pkg_resources does
    https://github.com/pypa/setuptools/blob/a4dbe3457d89cf67ee3aa571fdb149e6eb544e88/pkg_resources/__init__.py\#L112
    
    * allow legacy versions
    
    * fix coverage
    
    * fix coverage
    
    * add tests for version helpers
    tswast authored Jul 16, 2021
    Configuration menu
    Copy the full SHA
    4ff8bed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22fd848 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. feat: add standard sql table type, update scalar type enums (#777)

    * feat: add standard sql table type, update scalar type enums
    
    Committer: @shollyman
    PiperOrigin-RevId: 385164907
    
    Source-Link: googleapis/googleapis@9ae82b8
    
    Source-Link: googleapis/googleapis-gen@bc1724b
    
    * 🦉 Updates from OwlBot
    
    See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
    
    * fix: exclude copying microgenerated '.coveragrc'
    
    * fix: add 'INTERVAL'/'JSON' to _SQL_SCALAR_TYPES
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: Tres Seaver <[email protected]>
    3 people authored Jul 19, 2021
    Configuration menu
    Copy the full SHA
    b8b5433 View commit details
    Browse the repository at this point in the history
  2. feat: add support for user defined Table View Functions (#724)

    * Add auxiliary classes for TVF routines
    
    * Add return_table_type property to Routine
    
    * Add system test for TVF routines
    
    * Use the generated StandardSqlTableType class
    
    * Update docs with new changes
    
    * Add missing space in misc. Sphinx directives
    plamut authored Jul 19, 2021
    Configuration menu
    Copy the full SHA
    8c7b839 View commit details
    Browse the repository at this point in the history
  3. chore: release 2.22.0 (#771)

    🤖 I have created a release \*beep\* \*boop\*
    ---
    ## [2.22.0](https://www.github.com/googleapis/python-bigquery/compare/v2.21.0...v2.22.0) (2021-07-19)
    
    
    ### Features
    
    * add `LoadJobConfig.projection_fields` to select DATASTORE_BACKUP fields ([#736](https://www.github.com/googleapis/python-bigquery/issues/736)) ([c45a738](https://www.github.com/googleapis/python-bigquery/commit/c45a7380871af3dfbd3c45524cb606c60e1a01d1))
    * add standard sql table type, update scalar type enums ([#777](https://www.github.com/googleapis/python-bigquery/issues/777)) ([b8b5433](https://www.github.com/googleapis/python-bigquery/commit/b8b5433898ec881f8da1303614780a660d94733a))
    * add support for more detailed DML stats ([#758](https://www.github.com/googleapis/python-bigquery/issues/758)) ([36fe86f](https://www.github.com/googleapis/python-bigquery/commit/36fe86f41c1a8f46167284f752a6d6bbf886a04b))
    * add support for user defined Table View Functions ([#724](https://www.github.com/googleapis/python-bigquery/issues/724)) ([8c7b839](https://www.github.com/googleapis/python-bigquery/commit/8c7b839a6ac1491c1c3b6b0e8755f4b70ed72ee3))
    
    
    ### Bug Fixes
    
    * avoid possible job already exists error ([#751](https://www.github.com/googleapis/python-bigquery/issues/751)) ([45b9308](https://www.github.com/googleapis/python-bigquery/commit/45b93089f5398740413104285cc8acfd5ebc9c08))
    
    
    ### Dependencies
    
    * allow 2.x versions of `google-api-core`, `google-cloud-core`, `google-resumable-media` ([#770](https://www.github.com/googleapis/python-bigquery/issues/770)) ([87a09fa](https://www.github.com/googleapis/python-bigquery/commit/87a09fa3f2a9ab35728a1ac925f9d5f2e6616c65))
    
    
    ### Documentation
    
    * add loading data from Firestore backup sample ([#737](https://www.github.com/googleapis/python-bigquery/issues/737)) ([22fd848](https://www.github.com/googleapis/python-bigquery/commit/22fd848cae4af1148040e1faa31dd15a4d674687))
    ---
    
    
    This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
    release-please[bot] authored Jul 19, 2021
    Configuration menu
    Copy the full SHA
    5802092 View commit details
    Browse the repository at this point in the history
Loading