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
Credentials c = new ServiceAccountCredentials(); /* hiding credentials here*/
BigQueryOptions options = BigQueryOptions.newBuilder().setCredentials(c).setProjectId('id').build();
BigQuery bq = options.getService();
TableId id = TableId.of('project id', 'dataset id', 'table id');
Table t = bq.getTable(id);
t.load(FormatOptions.csv(), "gs://bucket/file1.csv");
System.out.println(loadJob.getStatistics());
I was expecting the statistics to be of 'Load' type but its of 'Copy' type.
Can anyone tell me where am I doing wrong? Indeed, data is getting inserted into table but I am missing the output statistics (no of rows, no of bytes, etc) due to wrong type being returned.
Hi,
I have following code snippet in my project.
I was expecting the statistics to be of 'Load' type but its of 'Copy' type.
Can anyone tell me where am I doing wrong? Indeed, data is getting inserted into table but I am missing the output statistics (no of rows, no of bytes, etc) due to wrong type being returned.