Created
January 19, 2019 19:06
-
-
Save sandboxws/0837791f0d3eb3bab1abcc32911ea392 to your computer and use it in GitHub Desktop.
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
// Extract errors PCollectionTuple | |
PCollection<String> bqTableRowsErrors = | |
bqTableRowsTuple.get(bqTableRowsFailedTag) | |
.setCoder(NullableCoder.of(StringUtf8Coder.of())); | |
// Log errors to a text file under cloud storage. | |
bqTableRowsErrors | |
.apply( | |
"Write Errors", | |
TextIO.write().to("gs://beam-tutorial/album_errors.txt") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment