I'm very new with Google Big Query and I have a hard time inserting a row into a table.
For example I have a table:
iso2 [string|required]
names [record|required]
names.name [string|required]
names.language [string|required]
names.official [boolean|required]
And I have a class:
class Country{
string Iso2 {get;set;}
List<CountryName> Names {get;set;}
class CountryName{
string Name {get;set;}
string Language {get;set;}
bool Official {get;set;
}
}
And I create a country
var country = new Country(){
Iso2 = "nl",
Names = new Country.CountryName(){
Name = "Nederland",
Language = "nl",
Official = true
}
}
BigQueryClient client = BigQueryClient.Create(projectId);
//How do I insert this country into the table?
So how do I convert an object so it can be inserted into Google BigQuery
BigQueryInsertRowbased on your object? What happened? Have you already created the table? What does the schema look like? - Jon Skeetrecordcolumns. - NLAnaconda