Get a typed SCollection for a BigQuery SELECT query or table.
Get a typed SCollection for a BigQuery SELECT query or table.
Note that T
must be annotated with BigQueryType.fromSchema,
BigQueryType.fromTable, or BigQueryType.fromQuery.
By default the source (table or query) specified in the annotation will be used, but it can
be overridden with the newSource
parameter. For example:
@BigQueryType.fromTable("publicdata:samples.gsod") class Row // Read from [publicdata:samples.gsod] as specified in the annotation. sc.typedBigQuery[Row]() // Read from [myproject:samples.gsod] instead. sc.typedBigQuery[Row]("myproject:samples.gsod")
Enhanced version of ScioContext with experimental features.