Save this SCollection as a BigQuery table.
Save this SCollection as a BigQuery table. Note that element type T
must be annotated with
BigQueryType.
This could be a complete case class with BigQueryType.toTable. For example:
@BigQueryType.toTable case class Result(name: String, score: Double) val p: SCollection[Result] = // process data and convert elements to Result p.saveAsTypedBigQuery("myproject:mydataset.mytable")
It could also be an empty class with schema from BigQueryType.fromSchema, BigQueryType.fromTable, or BigQueryType.fromQuery. For example:
@BigQueryType.fromTable("publicdata:samples.gsod") class Row sc.typedBigQuery[Row]() .sample(withReplacement = false, fraction = 0.1) .saveAsTypedBigQuery("myproject:samples.gsod")
Save this SCollection as a BigQuery table.
Save this SCollection as a BigQuery table. Note that element type T
must be a case class
annotated with BigQueryType.toTable.
Enhanced version of SCollection with experimental features.