Skip to content

Commit

Permalink
Fix: allow-table-extended-to-handle-more-than-2048-chars (#326) (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Co-authored-by: Joe Berni <99652623+josephberni@users.noreply.github.com>
  • Loading branch information
andrefurlan-db and josephberni authored Jul 24, 2023
1 parent 33dca4b commit 84a7e97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/databricks/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 84a7e97

Please sign in to comment.