1 parent cb57b8f commit 3aae3ebCopy full SHA for 3aae3eb
1 file changed
bigquery/api/load_data_by_post.py
@@ -35,16 +35,16 @@
35
36
# [START make_post]
37
def load_data(schema_path, data_path, project_id, dataset_id, table_id):
38
- """
39
- Creates an http POST request for loading data into
40
- a bigquery table
+ """Loads the given data file into BigQuery.
41
42
Args:
43
schema_path: the path to a file containing a valid bigquery schema.
44
see https://cloud.google.com/bigquery/docs/reference/v2/tables
45
data_path: the name of the file to insert into the table.
46
-
47
- Returns: an http.request object
+ project_id: The project id that the table exists under. This is also
+ assumed to be the project id this request is to be made under.
+ dataset_id: The dataset id of the destination table.
+ table_id: The table id to load data into.
48
"""
49
# Create a bigquery service object, using the application's default auth
50
credentials = GoogleCredentials.get_application_default()
0 commit comments