Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
another .execute to adjust
  • Loading branch information
dataders committed Jul 27, 2023
commit ce8586f10e6232237e4f600a6af81c7288f487dc
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Features
- Added support for materialized_view and streaming_table materializations
- Support new dbt `limit` command-line flag

## dbt-databricks 1.5.5 (July 7, 2023)

Expand Down
3 changes: 2 additions & 1 deletion dbt/adapters/databricks/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ def execute(
sql: str,
auto_begin: bool = False,
fetch: bool = False,
limit: Optional[int] = None,
*,
staging_table: Optional[BaseRelation] = None,
) -> Tuple[AdapterResponse, Table]:
try:
return super().execute(sql=sql, auto_begin=auto_begin, fetch=fetch)
return super().execute(sql=sql, auto_begin=auto_begin, fetch=fetch, limit=limit)
finally:
if staging_table is not None:
self.drop_relation(staging_table)
Expand Down