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 — Add a system test for 'Table.upload_from_file'. by tseaver · Pull Request #2313 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Closes #2133.

/cc @jonparrott, @matheuspatury

I will cancel the PR job on Travis, as this PR changes only system tests.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver tseaver added testing api: bigquery Issues related to the BigQuery API. labels Sep 13, 2016
@tseaver tseaver assigned daspecster and dhermes Sep 13, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 13, 2016
@tseaver

tseaver commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@jgeewax, @omaray the new system test passes, and shows correct usage of Table.upload_from_file.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Before reviewing, this doesn't seem to fix the title of the issue:

bigquery.table.Table.upload_from_file fails with 400

Should the issue be renamed to be more accurate?

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Sep 13, 2016
View reviewed changes
Comment thread system_tests/bigquery.py
writer.writerows(ROWS)
csv_file.flush()

with open(csv_file.name, 'rb') as csv_read:

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Sep 14, 2016

Copy link
Copy Markdown
Contributor Author

Before reviewing, this doesn't seem to fix the title of the issue: "bigquery.table.Table.upload_from_file fails with 400"

The OP in that issue made an understandable error, calling job.begin() on the job returned from table.upload_from_file(): the issue is that the job already started, and the resource returned for the job does not contain enough information to (re)start it. This PR just demonstrates that table.upload_from_file() works as expected without making that call.

Should the issue be renamed to be more accurate?

We could rename the issue, or just close it and move on.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Sep 14, 2016

Copy link
Copy Markdown
Contributor

We could rename the issue, or just close it and move on.

Can you rename it to be more accurate? This way if anyone comes across it again they won't be misled.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Sep 14, 2016

Copy link
Copy Markdown
Contributor Author

Renamed.

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 14, 2016
Calling 'job.begin' on job returned from 'Table.upload_from_file' raises a 400 #2133
Closed
tseaver added 3 commits September 14, 2016 15:38
@tseaver
Add a system test for 'Table.upload_from_file'.
e5fa350
Closes #2133.
@tseaver
Add note to 'Table.upload_from_file' docstring.
dcc0779
Highlight that the returned job is already running, and that the user
should not call its 'begin' method.
@tseaver
Raise ValueError from 'Job.begin' if already running.
5ebd09a
@dhermes

dhermes commented Sep 15, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes approved these changes Sep 15, 2016
View reviewed changes
@tseaver

tseaver commented Sep 15, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes Any remaining issues?

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes approved these changes Sep 15, 2016
View reviewed changes

@dhermes dhermes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver
tseaver merged commit d861610 into googleapis:master Sep 15, 2016
@tseaver
tseaver deleted the 2133-bigquery-systest-table-upload_from_file branch September 15, 2016 16:13
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@theacodes theacodes unassigned daspecster and dhermes Sep 28, 2018
parthea pushed a commit that referenced this pull request Sep 22, 2023
@anguillanneuf @danoscarmike
[video] Streaming AutoML Classification [(#2313)](GoogleCloudPlatform…
d4efaaa
…/python-docs-samples#2313)

* Video Intelligence Beta - Streaming/Live Streaming support for AutoML custom models

* add test skeleton

* skeleton

* more skeleton code

* update sample: update video codec/test/model_id/etc.

* lint

* mask project id

* Noah's and Rebecca's suggestions
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
tests: remove generated routing parameter test for bidi/client side s…
332a50f
…treaming (#2313)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@dhermes dhermes dhermes 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 BigQuery API. cla: yes This human has signed the Contributor License Agreement. testing

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

@tseaver @dhermes @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.