Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wayne Parrott authored and shollyman committed Jul 22, 2020
1 parent 8d8fc34 commit 34773ce
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/async_query.py
Expand Up @@ -27,7 +27,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def async_query(query):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/export_data_to_gcs.py
Expand Up @@ -29,7 +29,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def export_data_to_gcs(dataset_name, table_name, destination):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/load_data_from_file.py
Expand Up @@ -27,7 +27,7 @@

import argparse
import time
from gcloud import bigquery
from google.cloud import bigquery


def load_data_from_file(dataset_name, table_name, source_file_name):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/load_data_from_gcs.py
Expand Up @@ -29,7 +29,7 @@
import time
import uuid

from gcloud import bigquery
from google.cloud import bigquery


def load_data_from_gcs(dataset_name, table_name, source):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
@@ -1 +1 @@
gcloud==0.18.3
google-cloud-bigquery==0.20.0
8 changes: 4 additions & 4 deletions samples/snippets/snippets.py
Expand Up @@ -28,8 +28,8 @@
import time
import uuid

from gcloud import bigquery
import gcloud.bigquery.job
from google.cloud import bigquery
import google.cloud.bigquery.job


def list_projects():
Expand Down Expand Up @@ -145,7 +145,7 @@ def list_rows(dataset_name, table_name, project=None):
break

# Use format to create a simple table.
format_string = '{:<16} ' * len(table.schema)
format_string = '{!s:<16} ' * len(table.schema)

# Print schema field names
field_names = [field.name for field in table.schema]
Expand Down Expand Up @@ -177,7 +177,7 @@ def copy_table(dataset_name, table_name, new_table_name, project=None):

# Create the table if it doesn't exist.
job.create_disposition = (
gcloud.bigquery.job.CreateDisposition.CREATE_IF_NEEDED)
google.cloud.bigquery.job.CreateDisposition.CREATE_IF_NEEDED)

# Start the job.
job.begin()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/snippets_test.py
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcloud import bigquery
from google.cloud import bigquery
import pytest

import snippets
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/stream_data.py
Expand Up @@ -29,7 +29,7 @@
import json
from pprint import pprint

from gcloud import bigquery
from google.cloud import bigquery


def stream_data(dataset_name, table_name, json_data):
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/sync_query.py
Expand Up @@ -26,7 +26,7 @@
import argparse

# [START sync_query]
from gcloud import bigquery
from google.cloud import bigquery


def sync_query(query):
Expand Down

0 comments on commit 34773ce

Please sign in to comment.