- Create a big query project
- Create a dataset within the big query project
- Create a table within the created dataset for the below schema
Field Name | Type | Mode
customerId | STRING | REQUIRED
interactionId | STRING | REQUIRED
interactionType | STRING | REQUIRED
timestamp | STRING | REQUIRED
platform | STRING | REQUIRED
message | STRING | REQUIRED
- Create a
Config.toml
file in the root directory and add the below content.
bigQueryAccessToken = "<BIG_QUERY_ACCESS_TOKEN>"
projectId = "<PROJECT_ID>"
datasetId = "<DATASET_ID>"
tableId = "<TABLE_ID>"
- Obtain a Google API key and replace with
<BIG_QUERY_ACCESS_TOKEN>
. - Find the
projectId
from the big query warehouse project and replace with<PROJECT_ID>
. - Find the
datasetId
from the project and replace with<DATASET_ID>
. - FInd the
tableId
from the dataset and replace with<TABLE_ID>
.
Run the following command from the root directory of the sample.
$ bal run