FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test(bigquery): fix snippet test for loading partitioned tables by plamut · Pull Request #10195 · googleapis/google-cloud-python · GitHub

test(bigquery): fix snippet test for loading partitioned tables - #10195

Closed
plamut wants to merge 1 commit into
googleapis:masterfrom
plamut:fix-partitions-snippet-test
Closed

test(bigquery): fix snippet test for loading partitioned tables#10195
plamut wants to merge 1 commit into
googleapis:masterfrom
plamut:fix-partitions-snippet-test

Conversation

plamut commented Jan 24, 2020

Copy link
Copy Markdown
Contributor

Fixes #10194.

For some reason the number of rows in the public test file us-states-by-date.csv has changed from 50 to 49. This PR adjusts the affected test.

PR checklist

  • Make sure to open an issue as a bug/issue 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)

tswast commented Jan 24, 2020

Copy link
Copy Markdown
Contributor

@shollyman Can you look into why this CSV changed and revert it back to the correct file? Note: we should have a rolling backup of files in the storage-samples project that owns this bucket.

tswast commented Jan 24, 2020

Copy link
Copy Markdown
Contributor

I just looked at the bucket. It was indeed modified at January 22, 2020 at 4:20:49 PM UTC-6. Not sure by whom.

$ diff bigquery_us-states_us-states-by-date*
1d0
< name,post_abbr,date
51c50
< Wyoming,WY,1890-07-10
\ No newline at end of file
---
> Wyoming,WY,1890-07-10

Looks like the header line was removed and a new line added at the end. Not sure why.

tswast commented Jan 24, 2020

Copy link
Copy Markdown
Contributor

I've restored the file from backup. Closing this PR.

tswast closed this Jan 24, 2020
plamut deleted the fix-partitions-snippet-test branch January 27, 2020 07:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQuery: the test for load partitioned table sample fails

3 participants


Back | FazBrowse Home | New Git URL