Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit34773ce

Browse files
Jon Wayne Parrottshollyman
Jon Wayne Parrott
authored andcommitted
1 parent8d8fc34 commit34773ce

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

‎samples/snippets/async_query.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
importtime
2828
importuuid
2929

30-
fromgcloudimportbigquery
30+
fromgoogle.cloudimportbigquery
3131

3232

3333
defasync_query(query):

‎samples/snippets/export_data_to_gcs.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
importtime
3030
importuuid
3131

32-
fromgcloudimportbigquery
32+
fromgoogle.cloudimportbigquery
3333

3434

3535
defexport_data_to_gcs(dataset_name,table_name,destination):

‎samples/snippets/load_data_from_file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
importargparse
2929
importtime
30-
fromgcloudimportbigquery
30+
fromgoogle.cloudimportbigquery
3131

3232

3333
defload_data_from_file(dataset_name,table_name,source_file_name):

‎samples/snippets/load_data_from_gcs.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
importtime
3030
importuuid
3131

32-
fromgcloudimportbigquery
32+
fromgoogle.cloudimportbigquery
3333

3434

3535
defload_data_from_gcs(dataset_name,table_name,source):

‎samples/snippets/requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcloud==0.18.3
1+
google-cloud-bigquery==0.20.0

‎samples/snippets/snippets.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
importtime
2929
importuuid
3030

31-
fromgcloudimportbigquery
32-
importgcloud.bigquery.job
31+
fromgoogle.cloudimportbigquery
32+
importgoogle.cloud.bigquery.job
3333

3434

3535
deflist_projects():
@@ -145,7 +145,7 @@ def list_rows(dataset_name, table_name, project=None):
145145
break
146146

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

150150
# Print schema field names
151151
field_names= [field.nameforfieldintable.schema]
@@ -177,7 +177,7 @@ def copy_table(dataset_name, table_name, new_table_name, project=None):
177177

178178
# Create the table if it doesn't exist.
179179
job.create_disposition= (
180-
gcloud.bigquery.job.CreateDisposition.CREATE_IF_NEEDED)
180+
google.cloud.bigquery.job.CreateDisposition.CREATE_IF_NEEDED)
181181

182182
# Start the job.
183183
job.begin()

‎samples/snippets/snippets_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
fromgcloudimportbigquery
15+
fromgoogle.cloudimportbigquery
1616
importpytest
1717

1818
importsnippets

‎samples/snippets/stream_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
importjson
3030
frompprintimportpprint
3131

32-
fromgcloudimportbigquery
32+
fromgoogle.cloudimportbigquery
3333

3434

3535
defstream_data(dataset_name,table_name,json_data):

‎samples/snippets/sync_query.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
importargparse
2727

2828
# [START sync_query]
29-
fromgcloudimportbigquery
29+
fromgoogle.cloudimportbigquery
3030

3131

3232
defsync_query(query):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp