Skip to content

Commit

Permalink
chore: remove vendored mod
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Dec 30, 2024
1 parent 42d2ffb commit fe91793
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6,520 deletions.
6 changes: 2 additions & 4 deletions src/dbt_osmosis/core/osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,10 @@ def f(node: ResultNode) -> bool:
yield uid, dbt_node


def normalize_column_name(column: str, credentials_type: str, to_lower: bool = False) -> str:
def normalize_column_name(column: str, credentials_type: str) -> str:
"""Apply case normalization to a column name based on the credentials type."""
if credentials_type == "snowflake" and column.startswith('"') and column.endswith('"'):
return column
if to_lower:
return column.lower()
if credentials_type == "snowflake":
return column.upper()
return column
Expand All @@ -503,7 +501,7 @@ def _maybe_use_precise_dtype(col: t.Any, settings: YamlRefactorSettings) -> str:
return col.dtype


def _get_catalog_key_for_node(node: ResultNode) -> CatalogKey:
def get_catalog_key_for_node(node: ResultNode) -> CatalogKey:
"""Make an appropriate catalog key for a dbt node."""
if node.resource_type == NodeType.Source:
return CatalogKey(node.database, node.schema, node.identifier or node.name)
Expand Down
Empty file.
3 changes: 0 additions & 3 deletions src/dbt_osmosis/vendored/dbt_core_interface/VENDORED.md

This file was deleted.

3 changes: 0 additions & 3 deletions src/dbt_osmosis/vendored/dbt_core_interface/__init__.py

This file was deleted.

Loading

0 comments on commit fe91793

Please sign in to comment.