Skip to content

Commit

Permalink
Fix: allow-table-extended-to-handle-more-than-2048-chars (databricks#326
Browse files Browse the repository at this point in the history
) (databricks#330)

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Co-authored-by: Joe Berni <99652623+josephberni@users.noreply.github.com>
  • Loading branch information
2 people authored and benc-db committed Jul 26, 2023
1 parent 5a40d93 commit b8046cb
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
Expand Up @@ -3,6 +3,10 @@
### Features
- Added support for materialized_view and streaming_table materializations

### 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 b8046cb

Please sign in to comment.