-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(tutorials): Add README, other small fixes to JsonWriterDefaultSt…
…ream tutorial (#1504) - Add a readme file - Fix the POM file for the current directory structure - Change one schema field in the sample
- Loading branch information
1 parent
79cb548
commit 691eae5
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# BigQuery Write API streaming tutorial | ||
|
||
This sample shows how to stream data from a JSON source into BigQuery by using | ||
the [BigQuery Write API](https://cloud.google.com/bigquery/docs/write-api) with | ||
the default stream. | ||
|
||
## Usage | ||
|
||
Download the | ||
[sample data file](https://storage.googleapis.com/cloud-samples-data/bigquery/tutorials/github.json). | ||
|
||
From this directory, run: | ||
|
||
``` | ||
mvn compile exec:java \ | ||
-Dexec.mainClass=com.example.bigquerystorage.JsonWriterDefaultStream \ | ||
-Dexec.args="project_id dataset table filepath` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
``` | ||
|
||
where `file_path` is the path to the JSON data file. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double-quote at the end?