Skip to content

Instantly share code, notes, and snippets.

@sandboxws
Created December 29, 2018 05:33
Show Gist options
  • Save sandboxws/39dc5c4c8774d74956d8fc9380f469b0 to your computer and use it in GitHub Desktop.
Save sandboxws/39dc5c4c8774d74956d8fc9380f469b0 to your computer and use it in GitHub Desktop.
Album BigQuery table schema
package com.sandboxws.chinook.bigquery.schema;
import com.google.api.services.bigquery.model.TableSchema;
import com.sandboxws.bigquery.TableSchemaBuilder;
/**
* Album BigQuery table schema.
*
* @author Ahmed El.Hussaini
*/
public class AlbumTableSchema {
public static TableSchema schema() {
return TableSchemaBuilder.create()
.integerField("id_album")
.stringField("title")
.integerField("artist_id")
.schema();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment