.from("non-executing-project:somedataset.sometable") .withTestServices(fakeBqServices) .withoutValidation(); readTransform = useTemplateCompatibility ? read.withTemplateCompatibility() : read;
@Override public PCollectionTuple expand(PBegin begin) { return begin .apply( "AvroToEntity", BigQueryIO.read( AvroToEntity.newBuilder() .setEntityKind(entityKind()) .setUniqueNameColumn(uniqueNameColumn()) .setNamespace(namespace()) .build()) .fromQuery(query()) .withoutValidation() .withTemplateCompatibility() .usingStandardSql()) .apply( "CheckNoKey", CheckNoKey.newBuilder() .setFailureTag(failureTag()) .setSuccessTag(successTag()) .build()); } }
/** * Disable validation that the table exists or the query succeeds prior to pipeline submission. * Basic validation (such as ensuring that a query or table is specified) still occurs. */ public Read withoutValidation() { return new Read(this.inner.withoutValidation()); }