File tree 2 files changed +6
-2
lines changed
scala/ai/chronon/integrations/cloud_gcp
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
spark.chronon.table.format_provider.class : " ai.chronon.integrations.cloud_gcp.GcpFormatProvider"
2
2
spark.chronon.partition.format : " yyyy-MM-dd"
3
- spark.chronon.table.gcs.temporary_gcs_bucket : " zl-warehouse"
3
+ spark.chronon.table.gcs.temporary_gcs_bucket : " zl-warehouse"
4
+ spark.chronon.table.gcs.connector_output_dataset : " data"
5
+ spark.chronon.table.gcs.connector_output_project : " canary-443022"
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ case class GcpFormatProvider(sparkSession: SparkSession) extends FormatProvider
43
43
val sparkOptions : Map [String , String ] = Map (
44
44
// todo(tchow): No longer needed after https://github.com/GoogleCloudDataproc/spark-bigquery-connector/pull/1320
45
45
" temporaryGcsBucket" -> sparkSession.conf.get(" spark.chronon.table.gcs.temporary_gcs_bucket" ),
46
- " writeMethod" -> " indirect"
46
+ " writeMethod" -> " indirect" ,
47
+ " materializationProject" -> sparkSession.conf.get(" spark.chronon.table.gcs.connector_output_project" ),
48
+ " materializationDataset" -> sparkSession.conf.get(" spark.chronon.table.gcs.connector_output_dataset" )
47
49
) ++ partitionColumnOption
48
50
49
51
BigQueryFormat (tableId.getProject, sparkOptions)
You can’t perform that action at this time.
0 commit comments