Skip to content

Commit d01103e

Browse files
committed
reorder comment
1 parent ff5eb5a commit d01103e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryFormat.scala

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import org.apache.spark.sql.SparkSession
1313
import scala.collection.JavaConverters._
1414

1515
case class GcpFormatProvider(sparkSession: SparkSession) extends FormatProvider {
16+
// Order of Precedence for Default Project
17+
// Explicitly configured project in code (e.g., setProjectId()).
18+
// GOOGLE_CLOUD_PROJECT environment variable.
19+
// project_id from the ADC service account JSON file.
20+
// Active project in the gcloud CLI configuration.
21+
// No default project: An error will occur if no project ID is available.
1622
lazy val bqOptions = BigQueryOptions.getDefaultInstance
1723
lazy val bigQueryClient = bqOptions.getService
1824

@@ -31,13 +37,6 @@ case class GcpFormatProvider(sparkSession: SparkSession) extends FormatProvider
3137

3238
val btTableIdentifier: TableId = BigQueryUtil.parseTableId(tableName)
3339

34-
// Order of Precedence for Default Project
35-
// Explicitly configured project in code (e.g., setProjectId()).
36-
// GOOGLE_CLOUD_PROJECT environment variable.
37-
// project_id from the ADC service account JSON file.
38-
// Active project in the gcloud CLI configuration.
39-
// No default project: An error will occur if no project ID is available.
40-
4140
val tableOpt = Option(bigQueryClient.getTable(btTableIdentifier.getDataset, btTableIdentifier.getTable))
4241
tableOpt match {
4342
case Some(table) => {

0 commit comments

Comments
 (0)