Documentation ¶
Overview ¶
tornadoes is an example that reads the public samples of weather data from BigQuery, counts the number of tornadoes that occur in each month, and writes the results to BigQuery.
Concepts: Reading/writing BigQuery; Using Go types for better type-safety.
Note: Before running this example, you must create a BigQuery dataset to contain your output table as described here:
https://cloud.google.com/bigquery/docs/tables#create-table
To execute this pipeline locally, specify the BigQuery table for the output with the form:
--output=YOUR_PROJECT_ID:DATASET_ID.TABLE_ID
The BigQuery input table defaults to apache-beam-testing.samples.weather_stations and can be overridden with {@code --input}.
Click to show internal directories.
Click to hide internal directories.