Hi @data-wrangler 

Dataset-Specific Catalogs
Unfortunately, Databricks doesn't support dataset-level scoping in the CREATE FOREIGN CATALOG command for BigQuery.
The catalog always tries to discover all datasets in the specified project. The options are quite limited:

CREATE FOREIGN CATALOG catalog_name
USING CONNECTION connection_name
OPTIONS (
project_id 'your-bq-project-id',
-- That's basically it for BigQuery-specific options
);

The UI field you're seeing is just a different way to specify the same project_id option.
Manual Table Registration
For manual registration, you need to create tables in a Databricks-managed catalog,
not the foreign catalog. Here's the correct approach:
1. Create a regular Databricks catalog and schema:
CREATE CATALOG my_bq_tables;
CREATE SCHEMA my_bq_tables.dataset_name;

2. Create tables that reference BigQuery using your connection:
CREATE TABLE my_bq_tables.dataset_name.table_name
USING bigquery
OPTIONS (
path 'your-bq-project.dataset.table',
connectionName 'your_connection_name'
);

3. You can also create views:
CREATE VIEW my_bq_tables.dataset_name.view_name
AS SELECT * FROM bigquery.`your_connection_name`.`your-bq-project.dataset.table`;

Troubleshooting Manual Registration
If you're getting errors, try:
- Verify your connection works with direct queries first
- Check the exact table path in BigQuery (project.dataset.table)
- Ensure your connection name is correct (case-sensitive)

The key insight is that foreign catalogs are for automatic discovery (which needs broad permissions),
while manual registration lets you work around permission limitations by explicitly defining what you need access to.

 

LR