Skip to content

Commit 50ad19e

Browse files
updates
Co-authored-by: Thomas Chow <[email protected]> Co-authored-by: Thomas Chow <[email protected]>
1 parent bd4539e commit 50ad19e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ case class GcpFormatProvider(sparkSession: SparkSession) extends FormatProvider
3333

3434
override def writeFormat(table: String): Format = {
3535
val tableId = BigQueryUtil.parseTableId(table)
36-
assert(Option(tableId.getProject).isDefined, s"project required for ${table}")
37-
assert(Option(tableId.getDataset).isDefined, s"dataset required for ${table}")
36+
assert(scala.Option(tableId.getProject).isDefined, s"project required for ${table}")
37+
assert(scala.Option(tableId.getDataset).isDefined, s"dataset required for ${table}")
3838

3939
val tu = TableUtils(sparkSession)
4040
val partitionColumnOption =
@@ -79,7 +79,7 @@ case class GcpFormatProvider(sparkSession: SparkSession) extends FormatProvider
7979
scala
8080
.Option(table)
8181
.map(getFormat)
82-
.getOrElse(Option(btTableIdentifier.getProject).map(BigQueryFormat(_, Map.empty)).getOrElse(Hive))
82+
.getOrElse(scala.Option(btTableIdentifier.getProject).map(BigQueryFormat(_, Map.empty)).getOrElse(Hive))
8383

8484
}
8585
}

spark/src/main/scala/ai/chronon/spark/TableUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
125125
true
126126
} catch {
127127
case ex: Exception =>
128-
logger.info(s"""Couldn't reach $tableName. Error: ${ex.getMessage.red}
128+
logger.debug(s"""Couldn't reach $tableName. Error: ${ex.getMessage.red}
129129
|Call path:
130130
|${cleanStackTrace(ex).yellow}
131131
|""".stripMargin)

0 commit comments

Comments
 (0)