Skip to content

Commit b6f5a08

Browse files
one more time
Co-authored-by: Thomas Chow <[email protected]>
1 parent a2b8559 commit b6f5a08

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ class DelegatingBigQueryMetastoreCatalog extends TableCatalog with SupportsNames
138138
s"Table identifier namespace ${identNoCatalog} must have at least one part.")
139139
}
140140
logger.info(s"Catalog TableID: ${tId.toString}")
141-
val table = bigQueryClient.getTable(tId)
142-
logger.info(s"Got table: ${table.getFriendlyName}")
143-
table.getDefinition.asInstanceOf[TableDefinition] match {
141+
try {
142+
val table = bigQueryClient.getTable(tId)
143+
logger.info(s"Got table: ${table.getFriendlyName}")
144+
table.getDefinition.asInstanceOf[TableDefinition] match {
144145
case externalTable: ExternalTableDefinition => {
145146
val uris = externalTable.getSourceUris.asScala
146147
val uri = scala
@@ -175,6 +176,9 @@ class DelegatingBigQueryMetastoreCatalog extends TableCatalog with SupportsNames
175176
}
176177
case _ => throw new IllegalStateException(s"Cannot support table of type: ${table.getFriendlyName}")
177178
}
179+
} catch {
180+
case e: Exception => logger.info("Got exception loading table", e)
181+
}
178182
}
179183
}
180184
.getOrElse(throw new NoSuchTableException(f"Table: ${identNoCatalog} not found in bigquery catalog."))

0 commit comments

Comments
 (0)