I have a dataflow pipeline that reads data from files in GCS, transforms it and places the results to BQ. I created the tests that checks the expected TableRows are in the PCollection, but how I can verify the data that will be written into BQ is right according to the db schema I provided?
tableRowPCollection.apply(BigQueryIO.Write.named("Write to table").to(options.getTableName())
.withCreateDisposition(CREATE_IF_NEEDED).withSchema(someSchema).
withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_TRUNCATE));