diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b6d954f0..9c912325e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## dbt-databricks 1.5.x TBD +### Fixes + +- Fix issue where the show tables extended command is limited to 2048 characters. ([#326](https://github.com/databricks/dbt-databricks/pull/326)) + ## dbt-databricks 1.5.5 (July 7, 2023) - Fixed issue where starting a terminated cluster in the python path would never return diff --git a/dbt/adapters/databricks/impl.py b/dbt/adapters/databricks/impl.py index e7b328f9b..7cff8f748 100644 --- a/dbt/adapters/databricks/impl.py +++ b/dbt/adapters/databricks/impl.py @@ -451,7 +451,7 @@ def _get_one_catalog( schema_relation = self.Relation.create( database=database, schema=schema, - identifier="|".join(table_names), + identifier=("|".join(table_names) if len("|".join(table_names)) < 2048 else "*"), quote_policy=self.config.quoting, ) for relation, information in self._list_relations_with_information(schema_relation):