Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8bcecf

Browse filesBrowse files
author
Jon Wayne Parrott
committed
Fix bigquery load from file sample
Change-Id: I5bcb3d41bed33f638e5dba13da3335adfbdc2ead
1 parent 36f97d6 commit a8bcecf
Copy full SHA for a8bcecf

File tree

Expand file treeCollapse file tree

2 files changed

+0
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-7
lines changed

‎bigquery/cloud-client/load_data_from_file.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/load_data_from_file.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ def load_data_from_file(dataset_name, table_name, source_file_name):
4444
job = table.upload_from_file(
4545
source_file, source_format='text/csv')
4646

47-
job.begin()
48-
4947
wait_for_job(job)
5048

5149
print('Loaded {} rows into {}:{}.'.format(

‎bigquery/cloud-client/load_data_from_file_test.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/load_data_from_file_test.py
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
import pytest
15-
1614
import load_data_from_file
1715

1816
DATASET_ID = 'test_dataset'
1917
TABLE_ID = 'test_import_table'
2018

2119

22-
@pytest.mark.xfail(
23-
strict=True,
24-
reason='https://github.com/GoogleCloudPlatform/gcloud-python/issues/2133')
2520
def test_load_table(resource, capsys):
2621
data_path = resource('data.csv')
2722

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.