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 — Support parsing DATE columns from Standard SQL tables by thejens · Pull Request #2265 · googleapis/google-cloud-python

Conversation

@thejens

@thejens thejens commented Sep 8, 2016

Copy link
Copy Markdown

Change-Id: I158b48b6470ff44ff006e18d5eb8e3540749670b

Sorry, something went wrong.

Uh oh!

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

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 8, 2016
@thejens
thejens force-pushed the master branch 2 times, most recently from 5ce1578 to dfdad0e Compare September 8, 2016 11:56
@thejens

thejens commented Sep 8, 2016

Copy link
Copy Markdown
Author

... guess I couldn't quite figure out how to unit test the _date_from_json as I couldn't find where the other _X_from_json functions were tested

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

Tests for the bigquery._helpers module are here.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

Thanks for the patch, BTW!

All reactions

Sorry, something went wrong.

Uh oh!

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

@thejens

thejens commented Sep 8, 2016

Copy link
Copy Markdown
Author

@tseaver Ty, I did find the tests module, but as the function I added had several similar functions I wanted to test it consistently, and I guess I couldn't find the tests for the others;

Ex. I added _date_from_json and "_float_from_json" already existed hence I want to test it in the same manner, but can't see where that happens

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

@thejens Hmmm, I see what you mean. Those helpers are being covered indirectly through the tests for query and table. They should probably have their own coverage in test__helpers.py, though.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver mentioned this pull request Sep 8, 2016
Add explicit tests for column-marshalling helpers. #2272
Merged
@daspecster daspecster added the api: bigquery Issues related to the BigQuery API. label Sep 8, 2016
@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

@thejens I landed more comprehensive tests for google.cloud.bigquery._helpers in #2272. They should serve as a model for your tests of _date_from_json.

All reactions

Sorry, something went wrong.

Uh oh!

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

@thejens
thejens force-pushed the master branch from dfdad0e to c7c7544 Compare September 9, 2016 07:33
Jens Larsson
Support parsing DATE columns from Standard SQL tables
3d8b6f4
Change-Id: I20a6fff4362e27ee35286a3538c24e37bc858faf
@thejens
thejens force-pushed the master branch from c7c7544 to 3d8b6f4 Compare September 9, 2016 07:39
@thejens

thejens commented Sep 9, 2016

Copy link
Copy Markdown
Author

@tseaver Thanks for putting those tests there; seems they and the one I added passed

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver
tseaver merged commit 298b28a into googleapis:master Sep 9, 2016
@tseaver

tseaver commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

@thejens Thanks again!

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver mentioned this pull request Sep 19, 2016
New Standard SQL Data Types Not Supported in gcloud._helpers._rows_from_json() / _CELLDATA_FROM_JSON() #2229
Closed
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@tseaver tseaver mentioned this pull request Sep 19, 2016
bigquery: please support non-legacy-sql nested data type, and preserve order in json #2342
Closed
parthea added a commit that referenced this pull request Nov 24, 2025
@ohmayr @parthea
feat: add debug log when creating client (#2265)
9b9249a
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Mar 6, 2026
@tswast
chore: execute retry tests serially, since they depend on global time (…
1dfea75
…#2265)

* chore: migrate test_base retry tests

* migrate job_helpers test

* migrate more tests

* fix initiate resumable upload tests

* fix failing tests

* remove dead test code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

api: bigquery Issues related to the 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

@thejens @tseaver @daspecster @googlebot
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.