Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Following is a simple example showing how BigQuery Source would work.

A dataset already exist in Google BigQuery:121

project Id: vernal-seasdf-123456

...

namecount
Emma100
Oscar334
Peter223
Jay1123
Nicolas764

 

User pull the schema of the dataset:

InputsValue
project Id vernal-seasdf-123456
dataset namebaby_names

output schema:

 
SchemaTypeRequiredDescription
nameString Yesnames of baby born in 2014
countIntegerYesthe number of occurrences of the name

 

User run query agains dataset in BigQuery and pull the records:

InputsValue
project Id vernal-seasdf-123456
querySELECT name, count FROM baby_names ORDER BY count DESC LIMIT 3

 

output:

namecount
Jay1123
Nicolas764
Oscar334

 

Design

CDAP provides two type of operations on the dataset stored in BigQuery: Query and Poll Results. 

...