Open Bitsy-Chuck opened 3 months ago
public BigQuery getBqService(BigQueryEmulatorContainer bigQueryEmulatorContainer) {
String url = bigQueryEmulatorContainer.getEmulatorHttpEndpoint();
BigQueryOptions options = BigQueryOptions
.newBuilder()
.setProjectId(bigQueryEmulatorContainer.getProjectId())
.setHost(url)
.setLocation(url)
.setCredentials(NoCredentials.getInstance())
.build();
return options.getService();
}
Any update here?
I am trying to load a file in bigquery emulator using a load job
bigquery.create(JobInfo.of(loadConfig));
fails with
But when running normal queries like
bigquery.query(conf)
works with auth. How to pass the auth? bigquery client is init with NoCredentials()