public Task CreateTableAsync(bool timePartitioning, CancellationToken cancellationToken) { BigQueryClient client = GetBiqQueryClient(); return(client.GetOrCreateTableAsync( googleBigQueryAttribute.DatasetId, googleBigQueryAttribute.TableId, tableSchema, null, timePartitioning ? new CreateTableOptions() { TimePartitioning = new TimePartitioning() { Type = "DAY" } } : null, cancellationToken) .ContinueWith((getOrCreateTableTask) => { if (getOrCreateTableTask.IsFaulted) { throw getOrCreateTableTask.Exception.GetBaseException(); } })); }