@Test public void testNewTypesQueryWithoutReshuffle() throws Exception { this.setupNewTypesQueryTest(); this.runBigQueryToTablePipeline(); this.verifyNewTypesQueryRes(); }
@Test public void testLegacyQueryWithoutReshuffle() throws Exception { this.setupLegacyQueryTest(); this.runBigQueryToTablePipeline(); this.verifyLegacyQueryRes(); }
@Test public void testStandardQueryWithoutCustom() throws Exception { this.setupStandardQueryTest(); this.runBigQueryToTablePipeline(); this.verifyStandardQueryRes(); }
private void verifyStandardQueryRes() throws Exception { this.verifyLegacyQueryRes(); }
private void setupStandardQueryTest() { this.setupLegacyQueryTest(); this.options.setQuery( "SELECT * FROM (SELECT \"apple\" as fruit) UNION ALL (SELECT \"orange\" as fruit)"); this.options.setUsingStandardSql(true); }
@Test public void testNewTypesQueryWithReshuffle() throws Exception { this.setupNewTypesQueryTest(); this.options.setReshuffle(true); this.runBigQueryToTablePipeline(); this.verifyNewTypesQueryRes(); }
@Test @Category(DataflowPortabilityApiUnsupported.class) public void testLegacyQueryWithoutReshuffleWithCustom() throws Exception { this.setupLegacyQueryTest(); this.options.setExperiments( ImmutableList.of("enable_custom_bigquery_sink", "enable_custom_bigquery_source")); this.runBigQueryToTablePipeline(); this.verifyLegacyQueryRes(); }
@Test @Category(DataflowPortabilityApiUnsupported.class) public void testStandardQueryWithoutReshuffleWithCustom() throws Exception { this.setupStandardQueryTest(); this.options.setExperiments( ImmutableList.of("enable_custom_bigquery_sink", "enable_custom_bigquery_source")); this.runBigQueryToTablePipeline(); this.verifyStandardQueryRes(); } }
@Test @Category(DataflowPortabilityApiUnsupported.class) public void testNewTypesQueryWithoutReshuffleWithCustom() throws Exception { this.setupNewTypesQueryTest(); this.options.setExperiments( ImmutableList.of("enable_custom_bigquery_sink", "enable_custom_bigquery_source")); this.runBigQueryToTablePipeline(); this.verifyNewTypesQueryRes(); }