Skip to content

[BUG]: SQL queries fail for catalog names containing hyphens #124

Description

@kir445

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When a Unity Catalog name contains hyphens (e.g., arc-dbx-uc-cdp), SQL queries executed through SQLWarehouse and UnityCatalog classes fail with parse errors. Databricks SQL interprets the hyphens as minus operators, causing statements like SHOW SCHEMAS IN arc-dbx-uc-cdp to fail.

This affects all SQL operations that reference the catalog by name: SHOW SCHEMAS, SHOW TABLES, DESCRIBE, information_schema queries, and SHOW VOLUMES.

Expected Behavior

Catalog names containing hyphens should be automatically backtick-quoted so that SQL queries execute correctly. For example, SHOW SCHEMAS IN arc-dbx-uc-cdp should become SHOW SCHEMAS IN arc-dbx-uc-cdp``.

Steps To Reproduce

  1. Configure OntoBricks to connect to a Databricks workspace
  2. Have a Unity Catalog with a hyphenated name (e.g., arc-dbx-uc-cdp)
  3. Browse schemas or tables for that catalog through the OntoBricks UI
  4. SQL queries fail because the catalog name is not backtick-quoted

Cloud

Azure

Browser

Chrome

OntoBricks Version

0.5.2

Relevant log output

Additional Context

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions