Skip to content

Commit

Permalink
remove some extraneous log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Feb 4, 2025
1 parent e951e3d commit 1ccc7d1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions dbt/adapters/databricks/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

from dbt_common.behavior_flags import BehaviorFlag
from dbt_common.contracts.config.base import BaseConfig
from dbt_common.events.functions import fire_event
from dbt_common.events.types import Note
from dbt_common.exceptions import CompilationError, DbtConfigError, DbtInternalError
from dbt_common.utils import executor
from dbt_common.utils.dict import AttrDict
Expand Down Expand Up @@ -789,10 +787,6 @@ def parse_columns_and_constraints(

return enriched_columns, parsed_constraints

@available
def log_config(self, config: DatabricksConfig) -> None:
fire_event(Note(msg=f"In impl: {config.get('safe_table_create')}"))


@dataclass(frozen=True)
class RelationAPIBase(ABC, Generic[DatabricksRelationConfig]):
Expand Down
1 change: 0 additions & 1 deletion dbt/include/databricks/macros/materializations/table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
{% call statement('main', language=language) %}
{{ get_create_intermediate_table(intermediate_relation, compiled_code, language) }}
{% endcall %}
{{ log(existing_relation ~ " " ~ safe_create ~ " " ~ existing_relation.can_be_renamed) }}
{% if not existing_relation %}
{{ create_table_at(target_relation, intermediate_relation, compiled_code) }}
{% else %}
Expand Down
1 change: 0 additions & 1 deletion dbt/include/databricks/macros/relations/constraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
{% endmacro %}

{% macro apply_alter_constraints(relation) %}
{{ log("Alter constraints " ~ relation.alter_constraints) }}
{%- for constraint in relation.alter_constraints -%}
{% call statement('add constraint') %}
ALTER TABLE {{ relation }} ADD {{ constraint.render() }}
Expand Down
2 changes: 0 additions & 2 deletions dbt/include/databricks/macros/relations/create_backup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
-- get the standard backup name
{% set backup_relation = make_backup_relation(relation, relation.type) %}

{{ log("backup relation " ~ backup_relation) }}

-- drop any pre-existing backup
{% call statement('drop existing backup') %}
{{ get_drop_sql(backup_relation) }}
Expand Down

0 comments on commit 1ccc7d1

Please sign in to comment.