Skip to content

Commit 68d7e34

Browse files
wip
Co-authored-by: Thomas Chow <[email protected]>
1 parent 76eec29 commit 68d7e34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package ai.chronon.integrations.cloud_gcp
22

3-
import com.google.cloud.spark.bigquery.BigQueryCatalog
43
import com.google.cloud.bigquery.{
54
BigQuery,
65
BigQueryOptions,
@@ -9,10 +8,10 @@ import com.google.cloud.bigquery.{
98
TableDefinition,
109
TableId
1110
}
11+
import com.google.cloud.spark.bigquery.BigQueryCatalog
1212
import org.apache.iceberg.gcp.bigquery.BigQueryMetastoreCatalog
1313
import org.apache.iceberg.spark.SparkCatalog
1414
import org.apache.spark.sql.SparkSession
15-
import org.apache.spark.sql.catalyst.analysis.NoSuchTableException
1615
import org.apache.spark.sql.connector.catalog._
1716
import org.apache.spark.sql.connector.catalog.functions.UnboundFunction
1817
import org.apache.spark.sql.connector.expressions.Transform
@@ -23,6 +22,7 @@ import org.apache.spark.sql.util.CaseInsensitiveStringMap
2322

2423
import java.util
2524
import scala.jdk.CollectionConverters._
25+
import org.apache.spark.sql.catalyst.analysis.NoSuchTableException
2626
import scala.util.{Failure, Success, Try}
2727

2828
/** Galactus catalog that allows us to interact with BigQuery metastore as a spark catalog. This allows for
@@ -126,7 +126,6 @@ class DelegatingBigQueryMetastoreCatalog extends TableCatalog with SupportsNames
126126
// ideally it should be the below:
127127
// val connectorTable = connectorCatalog.loadTable(ident)
128128
connectorCatalog.loadTable(Identifier.of(Array(tId.getDataset), tId.getTable))
129-
130129
}
131130
case _ => throw new IllegalStateException(s"Cannot support table of type: ${table.getDefinition}")
132131
}

0 commit comments

Comments
 (0)