Skip to content

Commit 6af6db4

Browse files
committed
Add more info on BigQuery load's source file
1 parent f78da9d commit 6af6db4

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

gcloud-java-examples/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ To run examples from your command line:
4141

4242
Here's an example run of `BigQueryExample`.
4343

44-
Before running the example, go to the [Google Developers Console][developers-console] to ensure that BigQuery API is enabled.
44+
Before running the example, go to the [Google Developers Console][developers-console] to ensure
45+
that BigQuery API is enabled. You can upload a CSV file `my_csv_file` to the `my_bucket` bucket
46+
(replace `my_csv_file` and `my_bucket` with actual file and bucket names) using the GCS
47+
[web browser](https://console.developers.google.com/storage/browser). The CSV file will be used to
48+
load data into a BigQuery table and should look something like:
49+
```csv
50+
value1
51+
value2
52+
value3
53+
```
54+
Then you are ready to run the following example:
4555
```
4656
$mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.BigQueryExample" -Dexec.args="create dataset new_dataset_id"
4757
$mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.BigQueryExample" -Dexec.args="create table new_dataset_id new_table_id field_name:string"

0 commit comments

Comments
 (0)