You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This query take more than 10s to run and should fall back on the old query path
1821
+
StringslowDdlQuery =
1822
+
String.format(
1823
+
"CREATE OR REPLACE TABLE %s AS SELECT unique_key, agency, complaint_type, descriptor, street_name, city, landmark FROM `bigquery-public-data.new_york.311_service_requests`",
1824
+
tableName);
1825
+
QueryJobConfigurationddlConfig =
1826
+
QueryJobConfiguration.newBuilder(slowDdlQuery)
1827
+
.setDefaultDataset(DatasetId.of(DATASET))
1828
+
.build();
1829
+
TableResultresult = bigquery.query(ddlConfig);
1830
+
assertEquals(0, result.getTotalRows());
1831
+
assertNotNull(result.getSchema());
1832
+
// Verify correctness of table content
1833
+
StringsqlQuery = String.format("SELECT * FROM %s.%s", DATASET, tableName);
0 commit comments