Implicit dataset from environ by dhermes · Pull Request #444 · googleapis/google-cloud-python

@dhermes

By setting two environment variables

- GCLOUD_DATASET_ID
- GOOGLE_APPLICATION_CREDENTIALS

the user can call convenience methods in `gcloud.datastore` directly
without worrying about auth or the name of the dataset. The
goal is that in places like App Engine and Compute Engine, the
dataset ID can be implied without **any** user intervention.

Partially addresses googleapis#337.

NOTE: This still needs to be documented, but it's unclear
      where is appropriate. We also need to have documentation
      for auth (outside of CONTRIBUTING.md).

@dhermes

Incorporates feedback from @tseaver. Also
- Fixing bad tests that accidentally leave side-effects.
- Making the method to set the default dataset public.

dhermes added a commit that referenced this pull request

Dec 30, 2014
Implicit dataset from environ

@dhermes dhermes deleted the implicit-dataset-from-environ branch

December 30, 2014 16:53

parthea pushed a commit that referenced this pull request

Jun 4, 2023

parthea pushed a commit that referenced this pull request

Jun 4, 2023

vchudnov-g pushed a commit that referenced this pull request

Sep 20, 2023
Source-Link: googleapis/synthtool@0941ef3
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2f90537dd7df70f6b663cd654b1fa5dee483cf6a4edcfd46072b2775be8a23ec

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Sep 22, 2023

parthea added a commit that referenced this pull request

Sep 22, 2023
Co-authored-by: Anthonios Partheniou <partheniou@google.com>

parthea pushed a commit that referenced this pull request

Sep 22, 2023

parthea added a commit that referenced this pull request

Oct 21, 2023

parthea added a commit that referenced this pull request

Oct 21, 2023
* chore: test minimum dependencies in python 3.7

* update constraints

parthea added a commit that referenced this pull request

Oct 21, 2023
Co-authored-by: Anthonios Partheniou <partheniou@google.com>

parthea added a commit that referenced this pull request

Oct 21, 2023

parthea added a commit that referenced this pull request

Oct 21, 2023
* fix(deps): allow protobuf 3.19.5

* explicitly exclude protobuf 4.21.0

parthea pushed a commit that referenced this pull request

Aug 21, 2025

parthea pushed a commit that referenced this pull request

Sep 16, 2025

parthea pushed a commit that referenced this pull request

Sep 18, 2025
…00:00:00` (#444)

* fix: read out-of-bounds DATETIME values such as `0001-01-01 00:00:00`

deps: require google-cloud-bigquery 1.26.1 or later

* feat:  accepts a table ID, which downloads the table without a query

* revert tests for read_gbq fix which isn't yet resolved

* Revert "revert tests for read_gbq fix which isn't yet resolved"

This reverts commit 2a76982df7cff48e58d8b1ad7eae19477665cb76.

* add todo for next steps

* add unit test for table ID read_gbq

* add helper for is_query

* implement read_gbq with table id

* fix remaining tests, don't localalize out-of-bounds timestamp columns

* Update pandas_gbq/gbq.py

* fix 3.7 unit tests

* correct coverage

* skip coverage for optional test skip

* fix  docs build

* improve test coverage for error case

* as of google-cloud-bigquery 1.11.0, get_table before list_rows is unnecessary

* refactor tests

* add more scalars

* add more types

* add failing time test

* add test for bignumeric

* add test for null values

* add epoch timestamps to tests

* add post-download dtype conversions

* add failing test for desired fix

* fix the issue with extreme datetimes

* fix constraints

* fix tests for empty dataframe

* fix tests for older google-cloud-bigquery

* ignore index on empty dataframe

* add db-dtypes to runtime import checks

* document dependencies

* remove TODO, since done

* remove unnecessary special case for empty dataframe

Fixes prerelease test run

* remove redundant 'deprecated' from comment

parthea pushed a commit that referenced this pull request

Sep 18, 2025

parthea pushed a commit that referenced this pull request

Nov 24, 2025

parthea pushed a commit that referenced this pull request

Nov 24, 2025
Source-Link: googleapis/synthtool@993985f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:1894490910e891a385484514b22eb5133578897eb5b3c380e6d8ad475c6647cd

parthea pushed a commit that referenced this pull request

Nov 24, 2025
Source-Link: googleapis/synthtool@0ddbff8
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bced5ca77c4dda0fd2f5d845d4035fc3c5d3d6b81f245246a36aee114970082b

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Nov 24, 2025

parthea pushed a commit that referenced this pull request

Nov 24, 2025

parthea pushed a commit that referenced this pull request

Nov 24, 2025
autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

parthea pushed a commit that referenced this pull request

Nov 25, 2025

parthea pushed a commit that referenced this pull request

Nov 26, 2025
This reverts commit 054db75734756b0e82e7984ca07fa80025edc908.

parthea pushed a commit that referenced this pull request

Mar 6, 2026
This reverts commit 7959874a6f09da750533d10f90d94320e082be76.

fixes #444

parthea pushed a commit that referenced this pull request

Mar 9, 2026

parthea pushed a commit that referenced this pull request

Mar 9, 2026