diff --git a/CHANGELOG.md b/CHANGELOG.md index 7934a30b..27049ab9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## dbt-databricks 1.5.0 (Release 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.4.2 (February 17, 2023) ### Fixes diff --git a/dbt/adapters/databricks/impl.py b/dbt/adapters/databricks/impl.py index 870244d3..24cb3b1f 100644 --- a/dbt/adapters/databricks/impl.py +++ b/dbt/adapters/databricks/impl.py @@ -400,7 +400,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):